Blaze Brigade
|
Unit Interface for Warrior, Mage, and Archer More...
Public Member Functions | |
int | getMovability () |
int [] | getStats () |
void | setInitialStats () |
bool | isButtonActive (ButtonType buttonType) |
void | setButtonCoordinates (Vector2 pixelCoordinates) |
Texture2D | getSpriteImage () |
Texture2D | getButtonImage (ButtonType buttonType) |
Texture2D | getCharInfo () |
Texture2D | getCharAttackInfo () |
Button [] | getButtons () |
Button | getButtonType (ButtonType buttonType) |
Rectangle | getCurrentFrame () |
Weapon [] | getEquipableWeapons () |
UnitType | getClass () |
Properties | |
bool | Alive [get, set] |
int | Hp [get, set] |
int | Str [get, set] |
int | Int [get, set] |
int | Skill [get, set] |
int | Speed [get, set] |
int | Def [get, set] |
int | Res [get, set] |
int | Level [get, set] |
Weapon | equippedWeapon [get, set] |
int | currentFrame [get, set] |
Tuple< int, int > | Position [get, set] |
Vector2 | PixelCoordinates [get, set] |
Unit Interface for Warrior, Mage, and Archer
This is the interface for the 3 playable unit classes, where the only differences in the units will be their statistics and graphical assets
Texture2D Model.Unit.getButtonImage | ( | ButtonType | buttonType | ) |
returns the button texture at index i
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Button [] Model.Unit.getButtons | ( | ) |
returns the dropdown menu buttons of the unit
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Button Model.Unit.getButtonType | ( | ButtonType | buttonType | ) |
Returns the button type
buttonType | The button to return (Move, Attack, Item, Wait, and attack confirm) |
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Texture2D Model.Unit.getCharAttackInfo | ( | ) |
returns the char attack info screen texture
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Texture2D Model.Unit.getCharInfo | ( | ) |
returns the char info screen texture
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
UnitType Model.Unit.getClass | ( | ) |
returns unit's class (warrior, mage, archer)
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Rectangle Model.Unit.getCurrentFrame | ( | ) |
returns the current sprite frame in animation sequence
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Weapon [] Model.Unit.getEquipableWeapons | ( | ) |
returns array of equipable weapons
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
int Model.Unit.getMovability | ( | ) |
Returns the unit's movability range on grid (number of spaces the unit can move in one turn)
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
Texture2D Model.Unit.getSpriteImage | ( | ) |
returns the sprite image of the unit
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
int [] Model.Unit.getStats | ( | ) |
returns all stats as an array
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
bool Model.Unit.isButtonActive | ( | ButtonType | buttonType | ) |
indicates whether a button has already been previously selected or not
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
void Model.Unit.setButtonCoordinates | ( | Vector2 | pixelCoordinates | ) |
sets the coordinates of menu buttons
pixelCoordinates | The pixel coordinate of the button |
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
void Model.Unit.setInitialStats | ( | ) |
sets initial unit stats upon creation
Implemented in Model.Archer, Model.Mage, and Model.Warrior.
|
getset |
Sets and returns whether or not unit is alive
|
getset |
Sets and gets the current frame of the animation sequence
|
getset |
Sets and returns a unit's Defense
|
getset |
returns weapon the unit is currently equipping
|
getset |
Sets and returns a unit's HP
|
getset |
Sets and returns a unit's Intelliegence
|
getset |
Sets and returns a unit's Level
|
getset |
returns the pixel coordinate of the unit
|
getset |
gets and sets unit's position by tile
|
getset |
Sets and returns a unit's Resistance
|
getset |
Sets and returns a unit's Skill
|
getset |
Sets and returns a unit's Speed
|
getset |
Sets and returns a unit's Strength