Box2D Cannon Game with Stars
Chapter 8 of Ian Parberry's "Introduction to Game Physics with Box2D"
|
The heads-up display. More...
#include <hud.h>
Public Member Functions | |
CHeadsUpDisplay (int size) | |
Constructor. | |
void | draw (int secs, float temp, float maxtemp) |
Draw HUD. | |
Public Member Functions inherited from CObjectManager | |
CObjectManager (int size) | |
Constructor. | |
~CObjectManager () | |
Destructor. | |
CGameObject * | create (GameObjectType objecttype) |
Create new object. | |
void | move () |
Move all objects. | |
void | draw () |
Draw all objects. | |
void | clear () |
Clear the object list. | |
Public Attributes | |
BOOL | m_bEasterEgg |
Additional Inherited Members | |
Protected Attributes inherited from CObjectManager | |
CGameObject ** | m_pObjectList |
List of game objects. | |
int | m_nCount |
How many objects in list. | |
int | m_nSize |
Maximum size of list. | |
The heads-up display.
The HUD is responsible for managing parts of the heads-up display.
void CHeadsUpDisplay::draw | ( | int | secs, |
float | temp, | ||
float | maxtemp | ||
) |
Draw HUD.
Draw HUD, which includes a clock and a thermometer.
secs | Number of seconds to display on clock. |
temp | Temperature to display on thermometer. |
maxtemp | Maximimum temperature that thermometer can display. |