tbullet.h

来自「symbian 的一个 二维飞行游戏 源码 及相关技术文章」· C头文件 代码 · 共 36 行

H
36
字号
// Copyright 2002 Kenneth Guy,
// 
// TBullet.h

#ifndef _TBULLET_H_
#define _TBULLET_H_

/** \file TBullet.h 
    defines class TBullet */


#include "TSprite32x24.h"

/** Players bullets.

 */

class TBullet : public TSprite32x24 {
public:
  TBullet();
  void Set(TInt16 aSpriteNo, TInt16 aHealth);

  void  Shoot(TInt16 aX,TInt16 aY);
  void  AddHealth(TInt16 aHealth);
  TInt16 Health();
  void  Move();
  TInt16 Strength();

private:  
  TInt16  iHealth; /**< amount of damage the bullet will do before it expires */
  TInt16  iSavedSpriteNo; /**< Sprite to use for this bullet */
  TInt16  iSavedHealth;  /**< Health of a new bullet of this type */
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?