2007-08-01 17:06:04 +03:00
|
|
|
#ifndef STARTINFO_H
|
|
|
|
#define STARTINFO_H
|
|
|
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
enum Ebonus {brandom=-1,bartifact, bgold, bresource};
|
|
|
|
|
|
|
|
struct StartInfo
|
|
|
|
{
|
|
|
|
struct PlayerSettings
|
|
|
|
{
|
2007-08-04 00:47:34 +03:00
|
|
|
int castle, hero, //ID, if -1 then random, if -2 then none
|
|
|
|
heroPortrait; //-1 if default, else ID
|
2007-08-01 17:06:04 +03:00
|
|
|
std::string heroName;
|
|
|
|
Ebonus bonus;
|
|
|
|
Ecolor color; //from 0 -
|
|
|
|
int handicap;//0-no, 1-mild, 2-severe
|
|
|
|
std::string name;
|
|
|
|
};
|
|
|
|
std::vector<PlayerSettings> playerInfos;
|
|
|
|
int turnTime; //in minutes, 0=unlimited
|
2007-08-04 22:01:22 +03:00
|
|
|
PlayerSettings & getIthPlayersSettings(int no)
|
|
|
|
{
|
|
|
|
for(int i=0; i<playerInfos.size(); ++i)
|
|
|
|
if(playerInfos[i].color == no)
|
|
|
|
return playerInfos[i];
|
|
|
|
}
|
2007-08-01 17:06:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|