⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tank.h

📁 C++作业 完成一些简单的图形及其输入输出的功能 对于大学本科生做课程设计又很大帮助
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -