?? player.h
字號:
#ifndef PLAYER_H
#define PLAYER_H
#include "Sprite.h"
// 定義玩家戰機
class Player:public FighterPlane
{
double speed;
void Fire();
public:
int KillEnermy, Score;
enum ACTION { GO_LEFT, GO_UP, GO_RIGHT, GO_DOWN, GO_LEFT_UP, GO_LEFT_DOWN, GO_RIGHT_UP, GO_RIGHT_DOWN, STOP_MOVING, START_FIRING, STOP_FIRING, CHANGE_WEAPON};
Player(GameWorld *pgw, int x_value, int y_value);
void Update();
void ChangeWeapon();
void Action(ACTION NewAction);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -