The object world.
More...
#include <objectworld.h>
Create new object.
Create an object in the Object World.
- Parameters
-
- Returns
- Pointer to the object created.
Create new object.
Create a HUD object in the Object World.
- Parameters
-
- Returns
- Pointer to the object created.
void CObjectWorld::draw |
( |
| ) |
|
Draw everything in the Object World. Draw the game objects, then the HUD in that order using Painter's Algorithm.
void CObjectWorld::GetWorldSize |
( |
float & |
width, |
|
|
float & |
height |
|
) |
| |
Get the Object World width and depth.
Get the Object World's width and height.
- Parameters
-
width | Calling parameter will be set to Object World width. |
height | Calling parameter will be set to Object World height. |
BOOL CObjectWorld::PlayerHasWon |
( |
float |
level | ) |
|
Detect whether the player has won.
Determine whether player has won.
- Parameters
-
level | Proportion of Object World height that the blocks must be below to win. |
- Returns
- TRUE if player has won.
void CObjectWorld::SetWorldSize |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
Set the Object World width and depth.
Set the Object World's width and height.
- Parameters
-
width | Object World width. |
height | Object World height. |
BOOL KeyboardHandler |
( |
WPARAM |
k | ) |
|
|
friend |
Keyboard handler. Take the appropriate action when the user mashes a key on the keyboard.
- Parameters
-
k | Virtual key code for the key pressed |
- Returns
- TRUE if the game is to exit