📄 fight.cpp
字号:
/*==========================================================================
*
* Nmae of program:Battle Of Sky
* Author:唐晓鑫&唐强
* Date:2006.11
*
***************************************************************************/
#include "mousecontroller.h"
#include <iostream>
using namespace std ;
GameController *Fight ;
int TimerCallBack(void) {
return Fight->TimerTick();
}
int MouseCallBack(const Position &MousePosition) {
return Fight->MouseClick(MousePosition) ;
}
int ApiMain() {
Fight = new GameController ;
(Fight->GetGameWindow())->SetTimerCallback(TimerCallBack);
(Fight->GetGameWindow())->SetMouseClickCallback(MouseCallBack) ;
Fight->Play(Slow) ;
return 0 ;
}
int ApiEnd() {
delete Fight;
return 0 ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -