mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-26 08:41:13 +02:00
fe5bcc19cf
* redone randomization (mam nadziemę, że będzie toto działać) * no more cheating pathfinder * minor improvements * version changed to 0.52
34 lines
938 B
C++
34 lines
938 B
C++
#ifndef CARTHANDLER_H
|
|
#define CARTHANDLER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
enum EartClass {SartClass=0, TartClass, NartClass, JartClass, RartClass}; //artifact class (relict, treasure, strong, weak etc.)
|
|
class CDefHandler;
|
|
|
|
class CArtifact //container for artifacts
|
|
{
|
|
public:
|
|
bool isAllowed; //true if we can use this artifact (map information)
|
|
std::string name;
|
|
std::string description;
|
|
//std::string desc2;
|
|
std::string eventText;
|
|
unsigned int price;
|
|
bool spellBook, warMachine1, warMachine2, warMachine3, warMachine4, misc1, misc2, misc3, misc4, misc5, feet, lRing, rRing, torso, lHand, rHand, neck, shoulders, head;
|
|
EartClass aClass;
|
|
int id;
|
|
};
|
|
|
|
class CArtHandler //handles artifacts
|
|
{
|
|
public:
|
|
CDefHandler * artDefs;
|
|
std::vector<CArtifact*> treasures, minors, majors, relics;
|
|
std::vector<CArtifact> artifacts;
|
|
void loadArtifacts();
|
|
bool loadArtEvents();
|
|
};
|
|
|
|
#endif // CARTHANDLER_H
|