public class BattleHelper extends Object
| Constructor and Description |
|---|
BattleHelper(String token) |
BattleHelper(String token,
String serverUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
attack(Direction direction)
Issue an attack command in a specific direction
|
GameObject |
join(PlayerType type)
Join the battle.
|
BattleMap |
map()
Get the current state of the map.
|
GameObject |
me()
Get the state of your player.
|
GameObject |
move(Direction direction)
Issue an attack command in a specific direction
|
void |
spell(int spell,
Direction direction,
String extra)
Cast a spell.
|
public BattleHelper(String token)
public GameObject me() throws Exception
Exceptionpublic BattleMap map() throws Exception
Exceptionpublic GameObject join(PlayerType type) throws Exception
type - the desired player typeExceptionpublic GameObject move(Direction direction) throws Exception
direction - the direction where you want to moveExceptionpublic void attack(Direction direction) throws Exception
direction - the direction where you want to attackExceptionpublic void spell(int spell,
Direction direction,
String extra)
throws Exception
spell - the spell index of the spell you want to use [0-4]direction - the direction where you want to use the spellextra - for sudo spell extra represents a move command uppercased(eg "MOVE LEFT")
for chmod extra can be freeze/disarm/silenceExceptionCopyright © 2015. All rights reserved.