2007-07-28 18:23:15 +03:00
|
|
|
#ifndef CGAMESTATE_H
|
|
|
|
#define CGAMESTATE_H
|
|
|
|
|
|
|
|
#include "CSpellHandler.h"
|
|
|
|
#include "CAbilityHandler.h"
|
|
|
|
#include "CCreaturehandler.h"
|
|
|
|
#include "CArtHandler.h"
|
|
|
|
#include "CHeroHandler.h"
|
|
|
|
#include "CAmbarCendamo.h"
|
|
|
|
#include "CBuildingHandler.h"
|
|
|
|
#include "CObjectHandler.h"
|
|
|
|
#include "CMusicHandler.h"
|
|
|
|
#include "CSemiLodHandler.h"
|
|
|
|
#include "CDefObjInfoHandler.h"
|
|
|
|
#include "CLodHandler.h"
|
|
|
|
#include "CTownHandler.h"
|
|
|
|
|
|
|
|
struct PlayerState
|
|
|
|
{
|
2007-08-04 22:01:22 +03:00
|
|
|
public:
|
2007-07-28 18:23:15 +03:00
|
|
|
int color;
|
2007-08-04 22:01:22 +03:00
|
|
|
std::vector<std::vector<std::vector<bool> > >fogOfWarMap;
|
2007-07-28 18:23:15 +03:00
|
|
|
std::vector<int> resources;
|
|
|
|
std::vector<CHeroInstance> heroes;
|
2007-07-29 02:01:25 +03:00
|
|
|
std::vector<CTownInstance> towns;
|
|
|
|
};
|
2007-07-28 18:23:15 +03:00
|
|
|
|
|
|
|
class CGameState
|
|
|
|
{
|
2007-08-04 22:01:22 +03:00
|
|
|
public:
|
|
|
|
int currentPlayer;
|
2007-07-29 02:01:25 +03:00
|
|
|
std::map<int,PlayerState> players; //color <-> playerstate
|
|
|
|
};
|
2007-07-28 18:23:15 +03:00
|
|
|
|
|
|
|
#endif //CGAMESTATE_H
|