tank.h
来自「C++作业 完成一些简单的图形及其输入输出的功能 对于大学本科生做课程设计又很大」· C头文件 代码 · 共 36 行
H
36 行
#include"map.h"
#include"missile.h"
class Tank
{
public:
Tank(int x,int y);
virtual void Move();
virtual void Retake();
friend class Missile;
friend class Player;
friend class PlayerMissile;
int Direct; //use to send the previous direction
int X,Y;
protected:
int Temp;//use to save temp value;
int TDirect; //real Direction
static int value[81][26];
static int Tx,Ty;
void SetValue();
};
class Player:public Tank
{
public:
Player(int Px,int Py);
void Move(int ch);
friend class Missile;
protected:
// PlayerMissile Fire;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?