G2HGame

ostrat.gTwo.h2p.G2HGame
See theG2HGame companion object
class G2HGame(scenIn: G2HScen, val guiCounters: RArr[Counter])

Simple game manager for G2HScen. Contains the scenario and the set of Counters controlled by the single GUI player.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Resolves turn. Takes in the directives from the single GUI player and sets the valid directives as intentions. 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 in the directives from the single GUI player and sets the valid directives as intentions. 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.

Attributes

def restrict(inp: G2HScen): G2HScen

Restricts intentions to the counters controlled by the player.

Restricts intentions to the counters controlled by the player.

Attributes

Concrete fields

Implicits

Implicits

implicit val gridSys: HGridSys