|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BattleAI
Simple AI to determine the best course of attack/Item use/Monster switch based on the two battling Monsters.
Monster
,
Battle
Constructor Summary | |
BattleAI()
|
Method Summary | |
static Attack |
recommendMonsterAttack(Monster attacker,
Monster opponent)
Recommends the best Attack corresponding for the Monster |
static Attack |
recommendPlayerAttack(People attacker,
Player opponent)
Recommends the best Attack corresponding for the People against the Player |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BattleAI()
Method Detail |
public static Attack recommendMonsterAttack(Monster attacker, Monster opponent)
attacker
- the Monster attackingopponent
- the Monster defending
public static Attack recommendPlayerAttack(People attacker, Player opponent) throws ItemChangeException, MonsterChangeException
attacker
- the People attackingopponent
- the Player defending
ItemChangeException
- if the best course of action is to use an Item
MonsterChangeException
- if the best course of action is to switch MonstersMonster
,
People
,
Player
,
Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |