Skip to content

Battlefield

Ashish Mahindrakar edited this page Feb 14, 2018 · 4 revisions

Battlefield

Properties

  • positions - list of all positions on Battlefield
  • lakeAreas - list of all lake positions

Methods

  • getFieldInfoOf returns piece positions of a given team.
  • setUpFieldOf sets the field of particular given team.
  • getPotentialMovesOf returns the potential moves of a piece at given location.
  • attack returns the dead piece when an attack happens between pieces at given location.
  • addPiece put given piece on given location
  • removePiece removes and give back the piece at give location
  • updateFieldInfo update positions

Clone this wiki locally