Blaze Brigade
|
The Warrior model class, extends Unit This unit has a high skill and speed, and excels in dealing accurate ranged, high critical, physical attacks, but suffers from overall defense against physical attacks. More...
Public Member Functions | |
Archer (Texture2D spriteImage, Button attackButton, Button moveButton, Button itemButton, Button waitButton, Button confirmButton, Texture2D charInfo, Texture2D charAttackInfo, Vector2 coordinates, int player) | |
void | setInitialStats () |
int | getMovability () |
int [] | getStats () |
Weapon [] | getEquipableWeapons () |
UnitType | getClass () |
Texture2D | getSpriteImage () |
Texture2D | getButtonImage (ButtonType buttonType) |
bool | isButtonActive (ButtonType buttonType) |
Texture2D | getCharInfo () |
Texture2D | getCharAttackInfo () |
Button [] | getButtons () |
Button | getButtonOfType (ButtonType buttonType) |
void | setButtonCoordinates (Vector2 pixelCoordinates) |
Rectangle | getCurrentFrame () |
void | animate (Direction direction) |
Properties | |
bool | Alive [get, set] |
int | Hp [get, set] |
int | Speed [get, set] |
int | Def [get, set] |
int | Res [get, set] |
int | Level [get, set] |
Weapon | equippedWeapon [get, set] |
int | Str [get, set] |
int | Int [get, set] |
int | Skill [get, set] |
Tuple< int, int > | Position [get, set] |
Vector2 | PixelCoordinates [get, set] |
![]() | |
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] |
Tuple< int, int > | Position [get, set] |
Vector2 | PixelCoordinates [get, set] |
The Warrior model class, extends Unit This unit has a high skill and speed, and excels in dealing accurate ranged, high critical, physical attacks, but suffers from overall defense against physical attacks.
Model.Archer.Archer | ( | Texture2D | spriteImage, |
Button | attackButton, | ||
Button | moveButton, | ||
Button | itemButton, | ||
Button | waitButton, | ||
Button | confirmButton, | ||
Texture2D | charInfo, | ||
Texture2D | charAttackInfo, | ||
Vector2 | coordinates, | ||
int | player | ||
) |
The constructor for Unit Warrior
spriteImage | The character sprite |
attackButton | The dropdownmenu attack button texture |
moveButton | The dropdownmenu move button texture |
itemButton | The dropdownmenu item button texture |
waitButton | The dropdownmenu wait button texture |
confirmButton | The attack confirm button texture |
charInfo | The character info popup texture |
charAttackInfo | The character attack menu popup texture |
coordinates | The unit's current coordinate on screen |
player | The player of which the unit belongs to |
void Model.Archer.animate | ( | Direction | direction | ) |
animate sprite walking the direction specified
direction | The direction the unit is moving in |
Implements Model.Unit.
Texture2D Model.Archer.getButtonImage | ( | ButtonType | buttonType | ) |
returns the button texture at index i
Implements Model.Unit.
Button Model.Archer.getButtonOfType | ( | ButtonType | buttonType | ) |
Returns the button type
buttonType | The button to return (Move, Attack, Item, Wait, and attack confirm) |
Implements Model.Unit.
Button [] Model.Archer.getButtons | ( | ) |
returns the dropdown menu buttons of the unit
Implements Model.Unit.
Texture2D Model.Archer.getCharAttackInfo | ( | ) |
returns the char attack info screen texture
Implements Model.Unit.
Texture2D Model.Archer.getCharInfo | ( | ) |
returns the char info screen texture
Implements Model.Unit.
UnitType Model.Archer.getClass | ( | ) |
returns unit's class (warrior, mage, archer)
Implements Model.Unit.
Rectangle Model.Archer.getCurrentFrame | ( | ) |
returns the current sprite frame in animation sequence
Implements Model.Unit.
Weapon [] Model.Archer.getEquipableWeapons | ( | ) |
returns array of equipable weapons
Implements Model.Unit.
int Model.Archer.getMovability | ( | ) |
Returns the unit's movability range on grid (number of spaces the unit can move in one turn)
Implements Model.Unit.
Texture2D Model.Archer.getSpriteImage | ( | ) |
returns the sprite image of the unit
Implements Model.Unit.
int [] Model.Archer.getStats | ( | ) |
returns all stats as an array
Implements Model.Unit.
bool Model.Archer.isButtonActive | ( | ButtonType | buttonType | ) |
indicates whether a button has already been previously selected or not
Implements Model.Unit.
void Model.Archer.setButtonCoordinates | ( | Vector2 | pixelCoordinates | ) |
sets the coordinates of menu buttons
pixelCoordinates | The pixel coordinate of the button |
Implements Model.Unit.
void Model.Archer.setInitialStats | ( | ) |
sets initial unit stats upon creation
Implements Model.Unit.
|
getset |
Sets and returns whether or not unit is alive
|
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 Level
|
getset |
returns the pixel coordinate of the unit
sets the pixel coordinate, and also sets Position (which is the tile location of that coordinate)
|
getset |
gets and sets unit's position by tile
|
getset |
Sets and returns a unit's Resistance
|
getset |
Sets and returns a unit's Speed