|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.monsters.AbstractCounterAttack
Handles base-class stuff for counterattacks; in particular, setting and getting the chance that the attack will trigger.
Field Summary | |
protected int |
chance_
|
static int |
DEFAULT_CHANCE
|
protected int |
level_
|
Constructor Summary | |
AbstractCounterAttack()
|
Method Summary | |
int |
getChance()
Returns the chance that this attack will be triggered when the defender is hit. |
int |
getLevel()
Returns the power level of the attack. |
void |
setChance(int chance)
Sets the chance (in 100) that this attack will be triggered when the defender is hit. |
void |
setLevel(int level)
Sets the power level of the attack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wyvern.lib.properties.CounterAttack |
notifyAttacked |
Field Detail |
public static final int DEFAULT_CHANCE
protected int chance_
protected int level_
Constructor Detail |
public AbstractCounterAttack()
Method Detail |
public int getChance()
getChance
in interface CounterAttack
public void setChance(int chance)
setChance
in interface CounterAttack
public int getLevel()
public void setLevel(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |