RTS2D
|
Classe que contem as propriedades dos edificios. Mais...
#include <BuildingProperty.h>
Métodos Públicos | |
virtual | ~BuildingProperty () |
Destrutor. | |
void | loadCost () |
Carrega preco dos edificios. | |
void | loadDimension () |
Carrega dimensao dos edificios. | |
void | loadTileType () |
Carrega tipo do tile em que o edificio deve ser construido. | |
void | loadMaxSlot () |
Carrega numero maximo de espaco nos edificios. | |
void | loadMaxQueue () |
Carrega numero maximo da fila de treinamento dos edificios. | |
void | loadMiningGain () |
Carrega quantidade de ouro por intervalo de tempo dos edificios. | |
void | loadMiningCooldown () |
Carrega intervalo de tempo de espera para incremento de um tick de ouro. | |
void | loadMaxHp () |
Carrega vida maxima dos edificios. | |
void | loadRadius () |
Carrega raio de colisao dos edificios. | |
void | loadTime () |
Carrega tempo de construcao dos edificios. | |
void | loadName () |
Carrega nome dos edificios. | |
void | loadAction () |
Carrega acoes dos edificios. | |
void | loadBitmap () |
Carrega bitmap dos edificios. | |
void | loadIcon () |
Carrega icones dos edificios. | |
int | getCost (int type) |
int | getDimension (int type) |
int | getTileType (int type) |
int | getMaxSlot (int type) |
int | getMaxQueue (int type) |
int | getMiningGain (int type) |
float | getMiningCooldown (int type) |
float | getMaxHp (int type) |
float | getRadius (int type) |
float | getTime (int type) |
std::string | getName (int type) |
std::vector< std::string > | getAction (int type) |
ALLEGRO_BITMAP * | getBitmap (int type) |
ALLEGRO_BITMAP * | getIcon (int type) |
int | getType (std::string name) |
Devolve o numero do tipo da construcao com nome name. |
Classe que contem as propriedades dos edificios.
std::vector< std::string > BuildingProperty::getAction | ( | int | type | ) |
type | Tipo do edificio |
ALLEGRO_BITMAP * BuildingProperty::getBitmap | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getCost | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getDimension | ( | int | type | ) |
type | Tipo do edificio |
ALLEGRO_BITMAP * BuildingProperty::getIcon | ( | int | type | ) |
type | Tipo do edificio |
float BuildingProperty::getMaxHp | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getMaxQueue | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getMaxSlot | ( | int | type | ) |
type | Tipo do edificio |
float BuildingProperty::getMiningCooldown | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getMiningGain | ( | int | type | ) |
type | Tipo do edificio |
std::string BuildingProperty::getName | ( | int | type | ) |
type | Tipo do edificio |
float BuildingProperty::getRadius | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getTileType | ( | int | type | ) |
type | Tipo do edificio |
float BuildingProperty::getTime | ( | int | type | ) |
type | Tipo do edificio |
int BuildingProperty::getType | ( | std::string | name | ) |
Devolve o numero do tipo da construcao com nome name.
name | Nome da construcao |