Type Definitions
-
Ability of an Hero
Properties:
Name Type Description namestring name of the ability
hookAbilityHook when ability has an effect
isOptionnalboolean If true, player will have choice wether to activate ability or not
descstring Description of the ability effect
-
Ability Hook
-
Possible advanced rules
-
Battle Tile object
Properties:
Name Type Description idnumber unique ID of tile
namestring name of tile
victoryPointsnumber Number of victory points
victories/bluenumber Number of red player victories
victories/rednumber Number of blue player victories
-
player colors
-
Values For Deck Mode.
-
Faction of a hero
-
One game global state
Properties:
Name Type Description gameStateGameStateEnum Current status of the game
allHeroesArray.<HeroCard> Array containing all heroes
deckModeDeckMode Deck mode of the game
advRulesArray.<AdvRule> Array describing the active advandced rules, if any
waitingFor/blueboolean If true, we are waiting for blue to play
waitingFor/redboolean If true, we are waiting for red to play
currentPlayerColor | 'both' Who is current player, can be 'both'
battleTiles/left/ofBlueArray.<BattleTile> Battle tiles on left side of blue player
battleTiles/center/ofBlueArray.<BattleTile> Battle tiles on center of blue player
battleTiles/right/ofBlueArray.<BattleTile> Battle tiles on right side of blue player
totalFoodnumber Total food available for players to take
string All heroes in JSON format (read from a JSON file)
-
Values for Game state.
-
Possible action for a hero
-
Hero card
Properties:
Name Type Description idnumber unique ID of hero
namestring name of hero
costnumber cost of hero
powernumber power of hero
factionFaction faction of hero
popularityPopularity popularity attribute of hero
isDraftableboolean Is hero available in Draft mode
abilityAbility Ability of a hero
-
Hero in game
Properties:
Name Type Description idnumber unique ID of hero
positionHeroPosition position of hero in game
possibleActionsArray.<HeroAction> Actions possible on hero
-
Possible position for a hero
-
Possible action for a player
-
Game state for one player
Properties:
Name Type Description namestring username of this player
colorColor color of the player
factionFaction | "" Chosen faction (empty if not playing faction mode)
draftHeroesIdsArray.<number> Will contain the IDs of the heroes selectable for draft mode
twelveHeroesArray.<HeroInGame> The 12 Heroes used by player
foodInCampnumber Number of food in camp
foodInBattle/leftnumber Food on left battle field
foodInBattle/centernumber Food on center battle field
foodInBattle/rightnumber Food on right battle field
actionsPerformedArray.<object> During military phase it will contain actions made by player to be replayed by other
Array.<PlayerAction> Actions avalaible for the player
-
popularity attribute of a hero
-
Store data
Properties:
Name Type Description gameGameGlobalState The game global state in store
bluePlayerPlayerGameState The game state for blue player
redPlayerPlayerGameState The game state for red player