global.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef GLOBAL_H
  2. #define GLOBAL_H
  3. #define CHECKTIME 1
  4. #if CHECKTIME
  5. #include "timeHandler.h"
  6. #include "int3.h"
  7. #include <iostream>
  8. #define THC
  9. #else
  10. #define THC //
  11. #endif
  12. enum Ecolor {RED, BLUE, TAN, GREEN, ORANGE, PURPLE, TEAL, PINK}; //player's colors
  13. enum EterrainType {border=-1, dirt, sand, grass, snow, swamp, rough, subterranean, lava, water, rock};
  14. enum Eriver {noRiver=0, clearRiver, icyRiver, muddyRiver, lavaRiver};
  15. enum Eroad {dirtRoad=1, grazvelRoad, cobblestoneRoad};
  16. enum Eformat { WoG=0x33, AB=0x15, RoE=0x0e, SoD=0x1c};
  17. enum EvictoryConditions {artifact, gatherTroop, gatherResource, buildCity, buildGrail, beatHero,
  18. captureCity, beatMonster, takeDwellings, takeMines, transportItem, winStandard=255};
  19. enum ElossCon {lossCastle, lossHero, timeExpires, lossStandard=255};
  20. enum EHeroClasses {HERO_KNIGHT, HERO_CLERIC, HERO_RANGER, HERO_DRUID, HERO_ALCHEMIST, HERO_WIZARD,
  21. HERO_DEMONIAC, HERO_HERETIC, HERO_DEATHKNIGHT, HERO_NECROMANCER, HERO_WARLOCK, HERO_OVERLORD,
  22. HERO_BARBARIAN, HERO_BATTLEMAGE, HERO_BEASTMASTER, HERO_WITCH, HERO_PLANESWALKER, HERO_ELEMENTALIST};
  23. #define CGI (CGameInfo::mainObj)
  24. #define CURPLINT (((CPlayerInterface*)((CGameInfo::mainObj)->playerint[(CGameInfo::mainObj)->state->currentPlayer])))
  25. #define LOCPLINT (((CPlayerInterface*)((CGameInfo::mainObj)->playerint[(CGameInfo::mainObj)->localPlayer])))
  26. //CURPLINT gives pointer to the interface of human player which is currently making turn,
  27. //LOCPLINT gives pointer to the interface which is currently showed (on this machine)
  28. #define HEROI_TYPE (0)
  29. #define TOWNI_TYPE (1)
  30. const int F_NUMBER = 9; //factions (town types) quantity
  31. const int PLAYER_LIMIT = 8; //player limit per map
  32. const int HEROES_PER_TYPE=8; //amount of heroes of each type
  33. const int SKILL_QUANTITY=28;
  34. const int ARTIFACTS_QUANTITY=171;
  35. const int HEROES_QUANTITY=156;
  36. const int RESOURCE_QUANTITY=8;
  37. const int TERRAIN_TYPES=10;
  38. const int PRIMARY_SKILLS=4;
  39. const int NAMES_PER_TOWN=16;
  40. #define MARK_BLOCKED_POSITIONS false
  41. #define MARK_VISITABLE_POSITIONS false
  42. #define DEFBYPASS
  43. #endif //GLOBAL_H