Skip to content
Ben Ballard edited this page Sep 29, 2021 · 4 revisions

A player, companion, and enemy has an array of moves that it can use. To have a battle take place, you must make some moves and populate their arrays. Reference the Move object to see its constructor. You should also reference the Graphic object as well since that is an optional part of a move. After creating a Move object, you can add it to an array:

  • If it's a player or companion, just call addMove(Move) on the player/companion object.
  • If it's an enemy, then you must pass a Move[] in its setMoves(Move[]) method.
Clone this wiki locally