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

w miarę działający CMusicHandler pozwalający na granie niektórych dźwięków trochę łatwiej (choć i tak do dziecinnie proste ;]). Odgłos kliknięcia wywołujemy wywołując funkcję playClick(). Pozwoliłem sobie dorobić częściową obsługę tego w PreGame'ie.

This commit is contained in:
mateuszb
2007-06-20 12:00:18 +00:00
parent 027fbccdef
commit 7db0e1157b
7 changed files with 349 additions and 16 deletions

23
map.h
View File

@@ -3,6 +3,7 @@
#include <string>
#include <vector>
#include "global.h"
struct Sresource
{
@@ -175,7 +176,7 @@ struct Mapa
std::vector<Rumor> rumors;
std::vector<DefInfo> defy; // list of .def files
PlayerInfo players[8]; // info about players
std::vector<int> teams; // teams[i] = team of player nr i
std::vector<int> teams; // teams[i] = team of player no i
LossCondition lossCondition;
EvictoryConditions victoryCondition; //victory conditions
CspecificVictoryConidtions * vicConDetails; // used only if vistory conditions aren't standard
@@ -183,5 +184,25 @@ struct Mapa
std::vector<CMapEvent> events;
};
class CMapHeader
{
public:
Eformat version; // version of map Eformat
bool areAnyPLayers; // if there are any playable players on map
int height, width;
bool twoLevel; // if map has underground level
std::string name; //name of map
std::string description; //and description
int difficulty; // 0 easy - 4 impossible
int levelLimit;
LossCondition lossCondition;
EvictoryConditions victoryCondition; //victory conditions
CspecificVictoryConidtions * vicConDetails; // used only if vistory conditions aren't standard
PlayerInfo players[8]; // info about players
std::vector<int> teams; // teams[i] = team of player no i
int howManyTeams;
CMapHeader(unsigned char *map); //an argument is a reference to string described a map (unpacked)
};
#endif //MAPD