CPlane.h 290 字节
Newer Older
CjhGm's avatar
CjhGm 已提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "GameObject.h"

class CPlane : public CGameObject {
protected:
	int hp;
	int damage;
	int speed;

public:
	CPlane(int _hp, int _damage, int _speed);
	int getHp() const;
	int getSpeed() const;
	int getDamage() const;
	void decreaseHp(int x);
	bool isAlive() const;
};