2007-06-06 19:12:12 +03:00
|
|
|
#ifndef GLOBAL_H
|
|
|
|
#define GLOBAL_H
|
2007-06-07 16:43:30 +03:00
|
|
|
#define CHECKTIME 1
|
|
|
|
#if CHECKTIME
|
|
|
|
#include "timeHandler.h"
|
|
|
|
#include <iostream>
|
|
|
|
#define THC
|
|
|
|
#else
|
|
|
|
#define THC //
|
|
|
|
#endif
|
2007-08-06 16:09:41 +03:00
|
|
|
enum Ecolor {RED, BLUE, TAN, GREEN, ORANGE, PURPLE, TEAL, PINK}; //player's colors
|
2007-08-08 22:28:56 +03:00
|
|
|
enum EterrainType {border=-1, dirt, sand, grass, snow, swamp, rough, subterranean, lava, water, rock};
|
2007-07-31 16:09:34 +03:00
|
|
|
enum Eriver {noRiver=0, clearRiver, icyRiver, muddyRiver, lavaRiver};
|
2007-06-18 23:05:42 +03:00
|
|
|
enum Eroad {dirtRoad=1, grazvelRoad, cobblestoneRoad};
|
2007-06-06 19:12:12 +03:00
|
|
|
enum Eformat { WoG=0x33, AB=0x15, RoE=0x0e, SoD=0x1c};
|
|
|
|
enum EvictoryConditions {artifact, gatherTroop, gatherResource, buildCity, buildGrail, beatHero,
|
2007-07-29 02:01:25 +03:00
|
|
|
captureCity, beatMonster, takeDwellings, takeMines, transportItem, winStandard=255};
|
2007-06-06 19:12:12 +03:00
|
|
|
enum ElossCon {lossCastle, lossHero, timeExpires, lossStandard=255};
|
2007-07-29 02:01:25 +03:00
|
|
|
enum EHeroClasses {HERO_KNIGHT, HERO_CLERIC, HERO_RANGER, HERO_DRUID, HREO_ALCHEMIST, HERO_WIZARD,
|
|
|
|
HERO_DEMONIAC, HERO_HERETIC, HERO_DEATHKNIGHT, HERO_NECROMANCER, HERO_WARLOCK, HERO_OVERLORD,
|
|
|
|
HERO_BARBARIAN, HERO_BATTLEMAGE, HERO_BEASTMASTER, HERO_WITCH, HERO_PLANESWALKER, HERO_ELEMENTALIST};
|
2007-08-06 07:03:34 +03:00
|
|
|
|
|
|
|
#define CURPLINT (((CPlayerInterface*)(CGI->playerint[CGI->state->currentPlayer])))
|
|
|
|
#define LOCPLINT (((CPlayerInterface*)(CGI->playerint[CGI->localPlayer])))
|
|
|
|
//CURPLINT gives pointer to the interface of human player which is currently making turn,
|
|
|
|
//LOCPLINT gives pointer to the interface which is currently showed (on this machine)
|
|
|
|
|
|
|
|
|
2007-08-06 16:09:41 +03:00
|
|
|
const int F_NUMBER = 9; //factions (town types) quantity
|
2007-07-17 23:51:49 +03:00
|
|
|
const int PLAYER_LIMIT = 8; //player limit per map
|
2007-07-24 03:25:46 +03:00
|
|
|
const int HEROES_PER_TYPE=8; //amount of heroes of each type
|
2007-08-04 22:01:22 +03:00
|
|
|
const int SKILL_QUANTITY=28;
|
|
|
|
const int ARTIFACTS_QUANTITY=171;
|
|
|
|
const int HEROES_QUANTITY=156;
|
2007-07-17 23:51:49 +03:00
|
|
|
|
2007-08-11 17:58:07 +03:00
|
|
|
#define MARK_BLOCKED_POSITIONS false
|
|
|
|
#define MARK_VISITABLE_POSITIONS false
|
|
|
|
|
2007-08-12 20:48:05 +03:00
|
|
|
#define CGI (CGameInfo::mainObj)
|
|
|
|
|
2007-07-28 18:23:15 +03:00
|
|
|
|
|
|
|
|
2007-06-06 19:12:12 +03:00
|
|
|
#define DEFBYPASS
|
|
|
|
#endif //GLOBAL_H
|