This class holds states in the scope of the entire gameplay.
More...
|
static readonly int | SCREEN_HEIGHT = 640 |
|
static readonly int | SCREEN_WIDTH = 960 |
|
|
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< Node > | moveableNodes [get, set] |
|
static int | winningPlayer [get, set] |
|
This class holds states in the scope of the entire gameplay.
§ 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 as a string. For setting, an int is taken in, and parsed to String. If the damage dealt is 0, the String stored is changed to "Miss".
§ 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 |
Gets the enemy unit's last defending attack as a string. For setting, an int is taken in, and parsed to String. If the damage dealt is 0, the String stored is changed to "Miss".
§ 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.
§ isAnimating
bool Model.GameState.isAnimating |
|
staticgetset |
Sets and gets whether an animation sequence is currently on screen.
§ 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 |
§ transitionTurn
bool Model.GameState.transitionTurn |
|
staticgetset |
sets and gets whether it is currently transitioning turns.
§ TurnState
Sets and gets the current TurnState of the selected unit.
§ unitToAttack
Unit Model.GameState.unitToAttack |
|
staticgetset |
Sets and gets the unit to attack.
§ winningPlayer
int Model.GameState.winningPlayer |
|
staticgetset |
Sets and gets the winning player.
The documentation for this class was generated from the following file:
- C:/Users/Thien Trandinh/Documents/Blaze-Brigade/src/Blaze-Brigade/Blaze_Brigade/GameState.cs