H1Scen

ostrat.gOne.hp1.H1Scen
See theH1Scen companion object
trait H1Scen extends HSysTurnScen

A scenario turn or state for Game One. Consists of just a turn number and a tile Grid. Each tile can contain a single player or can be empty.

Attributes

Companion:
object
Graph
Supertypes
trait HSysScen
class Object
trait Matchable
class Any
Known subtypes
object G1HScen1.type
object G1HScen10.type
object G1HScen2.type
object G1HScen3.type
object G1HScen4.type
object G1HScen7.type
object G1HScen8.type
object G1HScen9.type

Members list

Concise view

Value members

Abstract methods

An optional player can occupy each tile. This is the only tile data in the game.

An optional player can occupy each tile. This is the only tile data in the game.

Attributes

Concrete methods

Resolves turn. Takes a list RArr 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 issueing the command may not know its real location.

Resolves turn. Takes a list RArr 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 issueing the command may not know its real location.

Attributes

Inherited methods

def defaultView(pxScale: Double): HGView

Attributes

Inherited from:
HSysScen
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.

Attributes

Inherited from:
GridTurnScen

Implicits

Inherited implicits

implicit def gridSys: HGridSys

Attributes

Inherited from:
HSysScen