RTS2D
|
Classe que contem as propriedades das unidades. Mais...
#include <UnitProperty.h>
Métodos Públicos | |
virtual | ~UnitProperty () |
Destrutor. | |
void | loadCost () |
Carrega preco das unidades. | |
void | loadProjectile () |
Carrega projetil das unidades. | |
void | loadCount () |
Carrega espaco que as unidades ocupam. | |
void | loadMaxHp () |
Carrega vida maxima das unidades. | |
void | loadDamage () |
Carrega dano de ataque das unidades. | |
void | loadAttackSpeed () |
Carrega tempo de recarga de ataque das unidades. | |
void | loadRange () |
Carrega alcance das unidades. | |
void | loadAggroRadius () |
Carrega raio de agressividade das unidades. | |
void | loadSpeed () |
Carrega velocidade das unidades. | |
void | loadRadius () |
Carrega raio de colisao das unidades. | |
void | loadTime () |
Carrega tempo de treinamento das unidades. | |
void | loadName () |
Carrega nome das unidades. | |
void | loadAction () |
Carrega acoes das unidades. | |
void | loadBitmap () |
Carrega bitmap das unidades. | |
void | loadIcon () |
Carrega iconesdas unidades. | |
int | getCost (int type) |
int | getProjectile (int type) |
int | getCount (int type) |
float | getMaxHp (int type) |
float | getDamage (int type) |
float | getAttackSpeed (int type) |
float | getRange (int type) |
float | getAggroRadius (int type) |
float | getSpeed (int type) |
float | getRadius (int type) |
float | getTime (int type) |
std::string | getName (int type) |
std::vector< std::string > | getAction (int type) |
std::vector< ALLEGRO_BITMAP * > | getBitmap (int type) |
ALLEGRO_BITMAP * | getIcon (int type) |
int | getType (std::string name) |
Devolve o numero do tipo da unidade com nome name. |
Classe que contem as propriedades das unidades.
std::vector< std::string > UnitProperty::getAction | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getAggroRadius | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getAttackSpeed | ( | int | type | ) |
type | Tipo da unidade |
std::vector< ALLEGRO_BITMAP * > UnitProperty::getBitmap | ( | int | type | ) |
type | Tipo da unidade |
int UnitProperty::getCost | ( | int | type | ) |
type | Tipo da unidade |
int UnitProperty::getCount | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getDamage | ( | int | type | ) |
type | Tipo da unidade |
ALLEGRO_BITMAP * UnitProperty::getIcon | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getMaxHp | ( | int | type | ) |
type | Tipo da unidade |
std::string UnitProperty::getName | ( | int | type | ) |
type | Tipo da unidade |
int UnitProperty::getProjectile | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getRadius | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getRange | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getSpeed | ( | int | type | ) |
type | Tipo da unidade |
float UnitProperty::getTime | ( | int | type | ) |
type | Tipo da unidade |
int UnitProperty::getType | ( | std::string | name | ) |
Devolve o numero do tipo da unidade com nome name.
name | Nome da unidade |