-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBattleCoreOutput.h
50 lines (29 loc) · 1.04 KB
/
BattleCoreOutput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
//---------------------------------------
//定义BattleCore.lib的输出函数
//使用lib需要include此头文件
//和其他一些支持性的struct
//尽量减少支持性struct的使用
//---------------------------------------
#define ROBOT_AI_TEST
#include <string>
#include "Basic_Battle/Robot/RobotAI_Interface.h"
using namespace std;
extern "C"
{
void LoadGameData();
void InitNewBattle(/*...*/);
//void SetBattleMode(const BattleMode & battleMode);
void SetBattleModeWithConfigFile(const char * filename);
//set with config file and route by cmd argument
void SetBattleModeNew(const char * filename,const char * record_path,const char * statistics_path);
int AddRobotAI(RobotAI_Interface* pAI);
//AchievementData_Battle& GetAchievementData(int robotID);
//BattleStatistics& GetBattleStatistivs();
//void OutputBattleXML(const char * filename);
bool LaunchBattle();
#ifdef ROBOT_AI_TEST
void StartTestingBattleWithRandomEquipment();
void StartTestingBattleWithAssignedEquipment(int weapon0=0,int engine0=0,int weapon1=4,int engine1=1);
#endif
}