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

📄 btpaddle.h

📁 Games programming all in one code chapter 21(final chapter)
💻 H
字号:
 /* 'btGame.h' */

 /* Mirus window framework header */
#include "Mirus\Mirus.h"

 /* Include this file only once */
#pragma once

 /* Break Through paddle class */
class btPaddle
{
protected:
  /* Paddle is made up of three parts */
 mrABO         m_kMainPaddle;
 mrABO         m_akSidePaddles [2];

  /* Physics object */
 mrEntity      m_kObject;

  /* Real size (all parts) of the paddle */
 mrUInt32      m_iWidth;
 mrUInt32      m_iHeight;


public:
  /* Constructor / Destructor */
 btPaddle (void);
 ~btPaddle (void);

  /* Paddle manipulation routines */
 void Create (void);
 void Render (void);
 void Synchronize (void);
 void Update (mrReal32 fStep);

  /* Paddle maintainance routines */
 void SetSize (mrUInt32 iWidth, mrUInt32 iHeight);
 mrUInt32 GetWidth (void);
 mrUInt32 GetHeight (void);
 mrEntity * GetObject (void);
};

⌨️ 快捷键说明

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