Blaze Brigade
|
Contains functions pertaining to the general game. More...
Static Public Member Functions | |
static bool | isAnEnemyUnitInRange (Graph graph, Unit unit) |
static bool | isEnemyUnitInRange (Graph graph, Unit unit, Unit enemyUnit) |
static void | startTurn (Player player) |
static LinkedList< Unit > | enemyUnitsInRange (Graph graph, Unit unit) |
static bool | hasUnitFinishedActions (Unit unit) |
static bool | isTurnOver () |
static bool | isGameOver () |
static LinkedList< Node > | setMovableNodes (Graph graph, Unit unit) |
static LinkedList< Node > | getAttackableNodes (Graph graph, Unit unit) |
static LinkedList< Node > | getAttackRangeAfterMoving (Graph graph, Unit unit) |
static LinkedList< Node > | pathFinder (Graph graph, Unit unit, Node start, Node end) |
Contains functions pertaining to the general game.
This class holds useable functions in the scope of the entire gameplay.
Returns all enemy units in strict attack range of the specified unit.
graph | Graph representing the current game map. |
unit | Unit to find enemy units for. |
|
static |
Returns a list of nodes that the unit can perform an attack on. Assumes the unit has not yet moved.
graph | Graph representing the current game map. |
unit | Specfied unit. |
|
static |
Returns whether or not the specified enemy unit is within attack range of the specified unit. Assumes the unit has already moved.
graph | Graph representing the current game map. |
Specified | unit. |
|
static |
Returns whether or not the specified unit can perform actions.
unit | Specified unit. |
Returns whether an enemy unit is in range of the specified unit.
graph | Graph representing the current game map. |
unit | Unit to find enemies for. |
|
static |
Returns whether or not the specified enemy unit is within attack range of the specified unit.
graph | Graph representing the current game map. |
unit | Specified playable unit. |
enemyUnit | Specified enemy unit. |
|
static |
Returns whether or not the game is over, based off win conditions.
|
static |
Returns whether or not the current turn is over.
|
static |
Returns a list of nodes representing the path from start node to end node; if not path is valid, return null.
graph | Graph representing the current game map. |
unit | Unit to move. |
start | Start Node of the path. |
end | End Node of the path |
Returns a list of nodes that the unit can move onto.
graph | Graph representing the current game map. |
Specified | unit. |
|
static |
Must be called upon the start of a new turn. Resets all unit buttons and game states.
player | Player of the new turn. |