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

📄 tbullet.h

📁 symbian 的一个 二维飞行游戏 源码 及相关技术文章
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -