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

📄 bonus.h

📁 分布式坦克大战游戏,多机运行
💻 H
字号:
/*****************************************************************************
*                                                                             
*   Bonus.h
*                                                                             
*   Electrical Engineering Faculty - Software Lab                             
*   Spring semester 1998                                                      
*                                                                             
*   Tanks game                                                                
*                                                                             
*   Module description: Interface of the bonus game object.
*                       
*                                                                             
*   Authors: Eran Yariv - 28484475                                           
*            Moshe Zur  - 24070856                                           
*                                                                            
*                                                                            
*   Date: 23/09/98                                                           
*                                                                            
******************************************************************************/
#ifndef _BONUS_H_
#define _BONUS_H_

#include "GameObject.h"

class CBonus : public CGameObject
{
public:
    CBonus (BonusType type, CPoint& pos, DWORD lifespan, DWORD StartTime);
    ~CBonus();

    StateType           CalcState (DWORD dwCurTime);
    ObjectHeightType    GetHeight();
    HIMAGE              GetImage();
    CReaction           React(CGameObject *pTo);
    GameObjectType      GetType();
    BonusType           GetBonusType ();
    void                Kill();

private:
    BonusType m_Type;
    HIMAGE    m_hImage;
    DWORD     m_uLifeSpan;
    DWORD     m_uStartTime;
};

#include "Bonus.inl"


#endif

⌨️ 快捷键说明

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