Skip to content

coduno/java-battle-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-battle-client

Commands

join

After you registered and received a token you can join the battle. To join you must pass a player type

  BattleHelper helper = new BattleHelper(TOKEN, SERVER_URL);
  GameObject me = helper.join(PlayerType.GOPHER);
move

For the move action you must pass a direction

  GameObject me = helper.move(Direction.LEFT);
attack

For the attack action you must pass a direction

 helper.attack(Direction.LEFT);
spell

To use a spell you must pass the spell index, the direction, and an extra string(needed just for a few spells).

  helper.spell(1, Direction.LEFT, "");
me

You can request the your stats at any time.

  GameObject me = helper.me();
battleMap

You can request the battleMap at any time.

  Map battleMap = helper.battleMap();

Exception info

You can receive multiple types of exceptions.

  • Cooldown exception - received when the command you are trying to do is on cooldown. You can also access the remaining time.
  • Behaviour exception - received when the command you are trying to do is blocked by a certain event(stun, freeze, disarm, silence, etc). You can also access the remaining time.
  • Info exception - it is a simple exception

About

Java client library for Coduno Battle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages