#include <CMosaic.h>
Public Member Functions | |
CMosaic (void) | |
~CMosaic (void) | |
void | SetDisplay (CDisplay *pDisplay) |
void | Create (int SpriteTable, int Sprite, int SpriteLayer, int PriorityInLayer, int SpriteWidth, int SpriteHeight, int TileCountX, int TileCountY, float SpeedX, float SpeedY) |
void | Destroy (void) |
void | Update (float DeltaTime) |
Update the mosaic state. | |
void | Display (void) |
Display the mosaic in its current state. | |
Private Attributes | |
CDisplay * | m_pDisplay |
Link to the display object to use to draw the mosaic. | |
int | m_SpriteTable |
Sprite table of the mosaic tile sprite to use. | |
int | m_Sprite |
Number of the mosaic tile sprite to use. | |
int | m_SpriteLayer |
Sprite layer where to draw the mosaic. | |
int | m_PriorityInLayer |
Priority to use in the sprite layer where to draw the mosaic. | |
int | m_SpriteWidth |
Width in pixels of the mosaic tile sprite. | |
int | m_SpriteHeight |
Height in pixels of the mosaic tile sprite. | |
int | m_TileCountX |
How many mosaic tiles to draw horizontally? | |
int | m_TileCountY |
How many mosaic tiles to draw vertically? | |
float | m_SpeedX |
Scrolling speed X of the mosaic. | |
float | m_SpeedY |
Scrolling speed Y of the mosaic. | |
float | m_BackgroundPositionX |
Top left corner of the animated tiled background. | |
float | m_BackgroundPositionY |
This position is modified to animate the background on the game view. | |
int | m_iBackgroundPositionX |
Integer coordinates of the position above,. | |
int | m_iBackgroundPositionY |
these coordinates _are_ in the screen coordinates. |
CMosaic::CMosaic | ( | void | ) |
CMosaic::~CMosaic | ( | void | ) |
void CMosaic::SetDisplay | ( | CDisplay * | pDisplay | ) | [inline] |
void CMosaic::Create | ( | int | SpriteTable, | |
int | Sprite, | |||
int | SpriteLayer, | |||
int | PriorityInLayer, | |||
int | SpriteWidth, | |||
int | SpriteHeight, | |||
int | TileCountX, | |||
int | TileCountY, | |||
float | SpeedX, | |||
float | SpeedY | |||
) |
void CMosaic::Destroy | ( | void | ) |
void CMosaic::Update | ( | float | DeltaTime | ) |
Update the mosaic state.
void CMosaic::Display | ( | void | ) |
Display the mosaic in its current state.
CDisplay* CMosaic::m_pDisplay [private] |
Link to the display object to use to draw the mosaic.
int CMosaic::m_SpriteTable [private] |
Sprite table of the mosaic tile sprite to use.
int CMosaic::m_Sprite [private] |
Number of the mosaic tile sprite to use.
int CMosaic::m_SpriteLayer [private] |
Sprite layer where to draw the mosaic.
int CMosaic::m_PriorityInLayer [private] |
Priority to use in the sprite layer where to draw the mosaic.
int CMosaic::m_SpriteWidth [private] |
Width in pixels of the mosaic tile sprite.
int CMosaic::m_SpriteHeight [private] |
Height in pixels of the mosaic tile sprite.
int CMosaic::m_TileCountX [private] |
How many mosaic tiles to draw horizontally?
int CMosaic::m_TileCountY [private] |
How many mosaic tiles to draw vertically?
float CMosaic::m_SpeedX [private] |
Scrolling speed X of the mosaic.
float CMosaic::m_SpeedY [private] |
Scrolling speed Y of the mosaic.
float CMosaic::m_BackgroundPositionX [private] |
Top left corner of the animated tiled background.
float CMosaic::m_BackgroundPositionY [private] |
This position is modified to animate the background on the game view.
int CMosaic::m_iBackgroundPositionX [private] |
Integer coordinates of the position above,.
int CMosaic::m_iBackgroundPositionY [private] |
these coordinates _are_ in the screen coordinates.