fight.cpp
来自「《BATTLE OF SKY》」· C++ 代码 · 共 39 行
CPP
39 行
/*==========================================================================
*
* 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 + =
减小字号Ctrl + -
显示快捷键?