public class SpeedPotion extends Item
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IMAGE_FILENAME
The item image filename
|
static int |
ITEM_NUM_ID
The item number ID
|
static java.lang.String |
NAME
The item name
|
static int |
PRICE
The item price
|
static int |
SPEED_POTION_DELAY
The delay length for the speed potion's effect
|
static double |
SPEED_POTION_SPEED
The additional x speed the speed potion provides for Sonic
|
h, image, IMAGE_BASE_PATH, imageFilename, item_num_id, items, name, price, w, x, y| Constructor and Description |
|---|
SpeedPotion()
The default constructor used to create the item
|
| Modifier and Type | Method and Description |
|---|---|
void |
use()
Describes the interation when the player uses the item
|
paint, updateItemListpublic static final int ITEM_NUM_ID
public static final java.lang.String NAME
public static final int PRICE
public static final java.lang.String IMAGE_FILENAME
public static final double SPEED_POTION_SPEED
public static final int SPEED_POTION_DELAY