mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
df7ef8115b
* częściowe czytanie bohaterów (zakomentowane, coby się nie sypało) * wczytywanie tekstów wyświetlających się po wciśnięciu ppm w menu new game * drobne poprawki w opisie bohaterów w specyfikacji
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
#ifndef CCREATUREHANDLER_H
|
|
#define CCREATUREHANDLER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class CCreature
|
|
{
|
|
public:
|
|
std::string namePl, nameSing; //name in singular and plural form
|
|
int wood, mercury, ore, sulfur, crystal, gems, gold, fightValue, AIValue, growth, hordeGrowth, hitPoints, speed, attack, defence, shots, spells;
|
|
int low1, low2, high1, high2; //TODO - co to w ogóle jest???
|
|
std::string abilityText; //description of abilities
|
|
std::string abilityRefs; //references to abilities, in textformat
|
|
int idNumber;
|
|
//TODO - zdolnoœci - na typie wyliczeniowym czy czymœ
|
|
};
|
|
|
|
class CCreatureSet //seven combined creatures
|
|
{
|
|
public:
|
|
CCreature * slot1, * slot2, * slot3, * slot4, * slot5, * slot6, * slot7; //types of creatures on each slot
|
|
unsigned int s1, s2, s3, s4, s5, s6, s7; //amounts of units in slots
|
|
bool formation; //false - wide, true - tight
|
|
};
|
|
|
|
class CCreatureHandler
|
|
{
|
|
public:
|
|
std::vector<CCreature> creatures;
|
|
void loadCreatures();
|
|
};
|
|
|
|
#endif //CCREATUREHANDLER_H
|