gift.h
来自「坦克大战,实现基本的游戏功能」· C头文件 代码 · 共 31 行
H
31 行
/*
gift.h
随机物品相关函数声明
最后修改: 2007-06-19
*/
#ifndef FILE_GIFT_INCLUDED
#define FILE_GIFT_INCLUDED
typedef struct Gift_Struct
{
int m_nX;
int m_nY;
char m_byType; /* 0-坦克 1-手枪 2-定时 3-炸弹 4-船 5-坦克无敌 6-老家无敌 */
int m_byTiming;
} CGift;
/*
void SetStopTank(char byType);
char GetStopTank();
void SetProtectBase(char byType);
*/
void DrawGift(CGift *pThis); /* 画随机物 */
void ClearGift(CGift *pThis); /* 清除随机物 */
void DeleteGift(CGift *pThis); /* 删除随机物 */
void CreateGift(int nLX, int nLY, int byType); /* 创建随机物 */
void GiftTimer(); /* 计时 */
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?