Represents a Player in the game.
More...
Represents a Player in the game.
Holds information pertaining to a Player in the game.
§ Player()
Creates a player. Initializes a list of player owned units.
§ addUnit()
void Model.Player.addUnit |
( |
Unit |
unit | ) |
|
Adds the specified unit to the player's units.
- Parameters
-
§ getNumOfUnits()
int Model.Player.getNumOfUnits |
( |
| ) |
|
Returns the total number of player owned units.
§ getUnits()
LinkedList<Unit> Model.Player.getUnits |
( |
| ) |
|
Returns all player owned units.
§ ownsUnit()
bool Model.Player.ownsUnit |
( |
Unit |
unit | ) |
|
Indicates whether the player owns the specified unit.
- Parameters
-
§ removeUnit()
void Model.Player.removeUnit |
( |
Unit |
unit | ) |
|
Removes the specified unit from the player's units.
- Parameters
-
The documentation for this class was generated from the following file:
- C:/Users/Thien Trandinh/Documents/Blaze-Brigade/src/Blaze-Brigade/Blaze_Brigade/Player.cs