ThreeScen

trait ThreeScen extends HexGridScen

Example Game three scenario trait.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

tile terrain.

tile terrain.

Concrete methods

def endTurn(orderList: Arr[(Lunit, HSteps)]): ThreeScen

Resolves turn. Takes a list Arr of commands consisting in this simple case of (Player, HStep) pairs. The command is passed in as a relative move. This is in accordance with the principle in more complex games that the entity issuing the command may not know its real location.

Resolves turn. Takes a list Arr of commands consisting in this simple case of (Player, HStep) pairs. The command is passed in as a relative move. This is in accordance with the principle in more complex games that the entity issuing the command may not know its real location.

Inherited methods

def turn: Int

The turn number. This will normally start at 0. The player will then give their instructions for turn 1. The scenario will take these orders / instructions and return the new game state at turn 1.

The turn number. This will normally start at 0. The player will then give their instructions for turn 1. The scenario will take these orders / instructions and return the new game state at turn 1.

Inherited from
GridTurnScen

Implicits

Inherited implicits

implicit
val grid: HGrid

This gives the structure of the hex grid. It contains no data about the elements of the grid. But it allows the scenario to create and operate on flat arrays of data.

This gives the structure of the hex grid. It contains no data about the elements of the grid. But it allows the scenario to create and operate on flat arrays of data.

Inherited from
HexGridScen