1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

poprawki z przesuwaniem oraz wczytywanie drużyn

This commit is contained in:
mateuszb
2007-06-07 17:45:56 +00:00
parent b531cf169a
commit ea099358f5
3 changed files with 41 additions and 8 deletions

20
map.h
View File

@@ -1,7 +1,25 @@
#ifndef MAPD
#define MAPD
#include <string>
#include <vector>
struct Sresource
{
std::string resName; //name of this resource
int amount; //it can be greater and lesser than 0
};
struct TimeEvent
{
std::string eventName;
std::string message;
std::vector<Sresource> decIncRes; //decreases / increases of resources
unsigned int whichPlayers; //which players are affected by this event (+1 - first, +2 - second, +4 - third, +8 - fourth etc.)
bool areHumansAffected;
bool areCompsAffected;
int firstAfterNDays; //how many days after appears this event
int nextAfterNDays; //how many days after the epperance before appaers this event
//bajty wydarze� (59 + |teksty|)
//4 bajty na d�ugo�� nazwy zdarzenia
//nazwa zdarzenia (bajty dodatkowe)
@@ -59,6 +77,7 @@ struct PlayerInfo
bool hasMainTown;
bool generateHeroAtMainTown;
Location posOfMainTown;
int team;
};
struct LossCondition
{
@@ -146,5 +165,6 @@ struct Mapa
LossCondition lossCondition;
EvictoryConditions victoryCondition; //victory conditions
CspecificVictoryConidtions * vicConDetails; // used only if vistory conditions aren't standard
int howManyTeams;
};
#endif //MAPD