|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Item | +--PotionItem
Class to define the Potions, HP Up's, Attack Up's, and Defense Up's.
Item
,
People
Field Summary | |
static int |
ATTUP
The Attack Up subBrand Identifier |
static int |
DEFUP
The Defense Up subBrand Identifier |
static int |
HPUPFULL
The HP Up full subBrand Identifier |
static int |
HPUPHALF
The HP Up half subBrand Identifier |
static int |
HPUPTHIRD
The HP Up third subBrand Identifier |
Fields inherited from class Item |
brand, MONSTERBALL, name, number, POTION |
Constructor Summary | |
PotionItem(java.lang.String name,
int subBrand)
Create a new PotionItem with the specified name, and subBrand. |
Method Summary | |
int |
getSubBrand()
Returns the type of Item this is. |
boolean |
useItem(Monster m)
Use this on the specified Monster |
Methods inherited from class Item |
addItem, equals, equals, getBrand, getItemCount, getName, setItemCount, setName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HPUPHALF
public static final int DEFUP
public static final int ATTUP
public static final int HPUPFULL
public static final int HPUPTHIRD
Constructor Detail |
public PotionItem(java.lang.String name, int subBrand)
name
- the name of the ItemsubBrand
- the type of Item defined aboveMethod Detail |
public int getSubBrand()
getSubBrand
in class Item
MonsterBallItem
,
PotionItem
public boolean useItem(Monster m)
useItem
in class Item
m
- The Monster to use this on, should be the Players Monster.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |