Blaze Brigade
Static Public Attributes | Properties | List of all members
Model.GameState Class Reference

This class holds states in the scope of the entire gameplay More...

Static Public Attributes

static readonly int SCREEN_HEIGHT = 640
 
static readonly int SCREEN_WIDTH = 960
 

Properties

static Player Player1 [get, set]
 
static Player Player2 [get, set]
 
static Unit selectedUnit [get, set]
 
static Unit selectedEnemyUnit [get, set]
 
static Unit unitToAttack [get, set]
 
static Player currentPlayer [get, set]
 
static Player enemyPlayer [get, set]
 
static bool dropDownMenuOpen [get, set]
 
static bool attackConfirmOpen [get, set]
 
static bool attackSelect [get, set]
 
static bool inventoryOpen [get, set]
 
static bool endTurnButton [get, set]
 
static bool beforeMove [get, set]
 
static bool isAnimating [get, set]
 
static bool gameOver [get, set]
 
static bool exitGameClicked [get, set]
 
static Vector2 endTurnButtonLocation [get, set]
 
static bool transitionTurn [get, set]
 
static TurnState TurnState [get, set]
 
static bool currentPlayerDamagePopup [get, set]
 
static String CurrentPlayerDamageDealt [get, set]
 
static Unit lastAttackingUnit [get, set]
 
static bool enemyPlayerDamagePopup [get, set]
 
static String EnemyPlayerDamageDealt [get, set]
 
static Unit lastDefendingUnit [get, set]
 
static LinkedList< NodemoveableNodes [get, set]
 

Detailed Description

This class holds states in the scope of the entire gameplay

Property Documentation

§ attackConfirmOpen

bool Model.GameState.attackConfirmOpen
staticgetset

Sets and gets whether attackConfirm menu should be open

§ attackSelect

bool Model.GameState.attackSelect
staticgetset

Sets and gets whether player is currently selecting unit to attack

§ beforeMove

bool Model.GameState.beforeMove
staticgetset

Sets and gets if a unit has moved yet or not. beforeMOve is true before unit moves, false after it moves. Used to determine what tiles are highlighted

§ currentPlayer

Player Model.GameState.currentPlayer
staticgetset

Sets and gets the current player

§ CurrentPlayerDamageDealt

String Model.GameState.CurrentPlayerDamageDealt
staticgetset

Sets and gets the current player's last attack

§ currentPlayerDamagePopup

bool Model.GameState.currentPlayerDamagePopup
staticgetset

Sets and gets whether damage dealt number pops up for current player

§ dropDownMenuOpen

bool Model.GameState.dropDownMenuOpen
staticgetset

Sets and gets whether drop down menu should be open

§ endTurnButton

bool Model.GameState.endTurnButton
staticgetset

Sets and gets whether end turn button is active

§ endTurnButtonLocation

Vector2 Model.GameState.endTurnButtonLocation
staticgetset

Sets and gets end turn button position

§ enemyPlayer

Player Model.GameState.enemyPlayer
staticgetset

Sets and gets the enemy player

§ EnemyPlayerDamageDealt

String Model.GameState.EnemyPlayerDamageDealt
staticgetset

Sets and gets the enemy player's last attack

§ enemyPlayerDamagePopup

bool Model.GameState.enemyPlayerDamagePopup
staticgetset

Sets and gets whether damage dealt number pops up for enemy player

§ exitGameClicked

bool Model.GameState.exitGameClicked
staticgetset

Sets and gets if game should exit

§ gameOver

bool Model.GameState.gameOver
staticgetset

Sets and gets whether game is over

§ inventoryOpen

bool Model.GameState.inventoryOpen
staticgetset

Sets and gets whether inventory menu should be open

§ lastAttackingUnit

Unit Model.GameState.lastAttackingUnit
staticgetset

Sets and gets the current unit controlled in a 2nd location, for printing damage popup AFTER selectedUnit has been updated, since damage Popup should appear for a few seconds after action has finished

§ lastDefendingUnit

Unit Model.GameState.lastDefendingUnit
staticgetset

Sets and gets the current unit controlled in a 2nd location, for printing damage popup AFTER unitToAttack has been updated, since damage Popup should appear for a few seconds after action has finished

§ moveableNodes

LinkedList<Node> Model.GameState.moveableNodes
staticgetset

Sets and gets movable nodes that can be retrieved without calling path finding

§ Player1

Player Model.GameState.Player1
staticgetset

Sets and gets player 1 (blue team)

§ Player2

Player Model.GameState.Player2
staticgetset

Sets and gets player 2 (red team)

§ selectedEnemyUnit

Unit Model.GameState.selectedEnemyUnit
staticgetset

Sets and gets the selected enemy unit

§ selectedUnit

Unit Model.GameState.selectedUnit
staticgetset

Sets and gets a unit

§ transitionTurn

bool Model.GameState.transitionTurn
staticgetset

sets and gets whether it is currently transitioning turns

§ TurnState

TurnState Model.GameState.TurnState
staticgetset

Sets and gets the current TurnState of the selected unit.

§ unitToAttack

Unit Model.GameState.unitToAttack
staticgetset

Sets and gets the unit to attack


The documentation for this class was generated from the following file: