1 /*
2  * Seven Kingdoms: Ancient Adversaries
3  *
4  * Copyright 1997,1998 Enlight Software Ltd.
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 //Filename    : OBATTLE.H
22 //Description : Header file for Battle object
23 
24 #ifndef __OBATTLE_H
25 #define __OBATTLE_H
26 
27 //---------- Define class Battle --------//
28 
29 // ##### begin Gilbert 18/8 ######//
30 struct NewNationPara;
31 // ##### end Gilbert 18/8 ######//
32 
33 class Battle
34 {
35 public:
36 	void  init();
37 	void	deinit();
38 
39 	// ##### begin Gilbert 18/8 ######//
40 	void	run(NewNationPara* mpGame, int mpPlayerCount=0);
41 	// ##### end Gilbert 18/8 ######//
42 
43 	#ifdef DEBUG
44 		void	run_sim();
45 	#endif
46 
47 	void	run_loaded();
48 	void	run_replay();
49 	void	run_test();
50 
51 private:
52 	void 	create_ai_nation(int aiNationCount);
53 	void 	create_pregame_object();
54 
55 	int 	create_town(int nationRecno, int raceId, int& xLoc, int& yLoc);
56 	int 	create_unit(int townRecno, int unitId, int rankId);
57 	void	create_test_unit(int nationRecno);
58 };
59 
60 extern Battle battle;
61 
62 //---------------------------------------//
63 
64 #endif
65