mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Added hero selection (buggy)
This commit is contained in:
parent
8cb1c3ff90
commit
40607240b4
17
CMT.cpp
17
CMT.cpp
@ -268,6 +268,15 @@ int _tmain(int argc, _TCHAR* argv[])
|
|||||||
|
|
||||||
cgi->townh = new CTownHandler;
|
cgi->townh = new CTownHandler;
|
||||||
cgi->townh->loadNames();
|
cgi->townh->loadNames();
|
||||||
|
|
||||||
|
CAbilityHandler * abilh = new CAbilityHandler;
|
||||||
|
abilh->loadAbilities();
|
||||||
|
cgi->abilh = abilh;
|
||||||
|
CHeroHandler * heroh = new CHeroHandler;
|
||||||
|
heroh->loadHeroes();
|
||||||
|
heroh->loadPortraits();
|
||||||
|
cgi->heroh = heroh;
|
||||||
|
|
||||||
THC std::cout<<"Loading .lods: "<<tmh.getDif()<<std::endl;
|
THC std::cout<<"Loading .lods: "<<tmh.getDif()<<std::endl;
|
||||||
CPreGame * cpg = new CPreGame(); //main menu and submenus
|
CPreGame * cpg = new CPreGame(); //main menu and submenus
|
||||||
THC std::cout<<"Initialization CPreGame (together): "<<tmh.getDif()<<std::endl;
|
THC std::cout<<"Initialization CPreGame (together): "<<tmh.getDif()<<std::endl;
|
||||||
@ -311,13 +320,7 @@ int _tmain(int argc, _TCHAR* argv[])
|
|||||||
CCreatureHandler * creh = new CCreatureHandler;
|
CCreatureHandler * creh = new CCreatureHandler;
|
||||||
creh->loadCreatures();
|
creh->loadCreatures();
|
||||||
cgi->creh = creh;
|
cgi->creh = creh;
|
||||||
CAbilityHandler * abilh = new CAbilityHandler;
|
|
||||||
abilh->loadAbilities();
|
|
||||||
cgi->abilh = abilh;
|
|
||||||
CHeroHandler * heroh = new CHeroHandler;
|
|
||||||
heroh->loadHeroes();
|
|
||||||
heroh->loadPortraits();
|
|
||||||
cgi->heroh = heroh;
|
|
||||||
CSpellHandler * spellh = new CSpellHandler;
|
CSpellHandler * spellh = new CSpellHandler;
|
||||||
spellh->loadSpells();
|
spellh->loadSpells();
|
||||||
cgi->spellh = spellh;
|
cgi->spellh = spellh;
|
||||||
|
BIN
CPreGame.cpp
BIN
CPreGame.cpp
Binary file not shown.
@ -60,7 +60,7 @@ class Options : public PreGameTab
|
|||||||
PlayerOptions(int serial, int player);
|
PlayerOptions(int serial, int player);
|
||||||
Ecolor color;
|
Ecolor color;
|
||||||
//SDL_Surface * bg;
|
//SDL_Surface * bg;
|
||||||
OptionSwitch left, right;
|
OptionSwitch left, right, Hleft, Hright;
|
||||||
int nr;
|
int nr;
|
||||||
};
|
};
|
||||||
public:
|
public:
|
||||||
|
1
global.h
1
global.h
@ -19,6 +19,7 @@ enum ElossCon {lossCastle, lossHero, timeExpires, lossStandard=255};
|
|||||||
|
|
||||||
const int F_NUMBER = 9; //factions quantity
|
const int F_NUMBER = 9; //factions quantity
|
||||||
const int PLAYER_LIMIT = 8; //player limit per map
|
const int PLAYER_LIMIT = 8; //player limit per map
|
||||||
|
const int HEROES_PER_TYPE=8; //amount of heroes of each type
|
||||||
|
|
||||||
#define DEFBYPASS
|
#define DEFBYPASS
|
||||||
#endif //GLOBAL_H
|
#endif //GLOBAL_H
|
Loading…
Reference in New Issue
Block a user