ammostatus.h
来自「分布式坦克大战游戏,多机运行」· C头文件 代码 · 共 74 行
H
74 行
/*****************************************************************************
*
* AmmoStatus.h
*
* Electrical Engineering Faculty - Software Lab
* Spring semester 1998
*
* Tanks game
*
* Module description: Interface of the CAmmoStatus class.
*
*
* Authors: Eran Yariv - 28484475
* Moshe Zur - 24070856
*
*
* Date: 23/09/98
*
******************************************************************************/
#if !defined(AFX_AMMOSTATUS_H__B239E761_E897_11D1_9738_A0C11B38D128__INCLUDED_)
#define AFX_AMMOSTATUS_H__B239E761_E897_11D1_9738_A0C11B38D128__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// AmmoStatus.h : header file
//
#include <DIB.h>
#include <GameConsts.h>
/////////////////////////////////////////////////////////////////////////////
// CAmmoStatus window
class CAmmoStatus : public CButton
{
// Construction
public:
CAmmoStatus();
void Create ();
virtual ~CAmmoStatus() {}
void SetShellsCount (UINT);
void SetBulletsCount (UINT);
void SetMinesCount (UINT);
CDIB *GetImage ();
private:
void WriteNumber (UINT u, UINT x, UINT y);
UINT m_uPrevShellsCount,
m_uCurShellsCount,
m_uPrevBulletsCount,
m_uCurBulletsCount,
m_uPrevMinesCount,
m_uCurMinesCount,
m_uShellIconYPos,
m_uBulletIconYPos,
m_uMineIconYPos;
CDIB m_DIB,
m_DIBDigits;
// Generated message map functions
protected:
//{{AFX_MSG(CAmmoStatus)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_AMMOSTATUS_H__B239E761_E897_11D1_9738_A0C11B38D128__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?