Pac-Man
|
A class that handle the window and graphics draw. More...
#include <CView.h>
Public Member Functions | |
CView (const SSize &mapSize) | |
constructs valid cviw with window already opened More... | |
~CView () | |
destructs the view and its parts | |
void | draw () |
method that draws the game | |
void | drawReadyScreen () |
method that draws the ready screen for the game | |
void | updateGameDisplayInfo (const SDisplayInfo &displayInfo) |
Method updating game display info. More... | |
void | updateMap (const vector< vector< SGameObjectInfo >> &map) |
Method for updating map. More... | |
void | updateGhosts (const vector< SGameObjectInfo > &ghosts) |
Method for updating ghosts. More... | |
void | updateStaticBonuses (const vector< SGameObjectInfo > &staticBonuses) |
Method for updating static bonuses. More... | |
void | updateMovingBonus (const SGameObjectInfo &movingBonus) |
Method for updating moving bonus. More... | |
void | updatePlayer (const SGameObjectInfo &player) |
Method for updating player. More... | |
void | enableMovingBonus () |
turn on drawing of the moving bonus | |
void | disableMovingBonus () |
turn off drawing of the moving bonus | |
A class that handle the window and graphics draw.
CView::CView | ( | const SSize & | mapSize | ) |
constructs valid cviw with window already opened
[in] | mapSize | size of the map that will be used in the game (size is in tiles) |
void CView::updateGameDisplayInfo | ( | const SDisplayInfo & | displayInfo | ) |
Method updating game display info.
[in] | displayInfo | display information in the view will be updated by this one |
void CView::updateGhosts | ( | const vector< SGameObjectInfo > & | ghosts | ) |
Method for updating ghosts.
[in] | ghosts | information about ghosts in the view will be update by these ones |
void CView::updateMap | ( | const vector< vector< SGameObjectInfo >> & | map | ) |
Method for updating map.
[in] | map | map information in the view will be update by this one |
void CView::updateMovingBonus | ( | const SGameObjectInfo & | movingBonus | ) |
Method for updating moving bonus.
[in] | movingBonus | moving bonus informationin the view will be update by this one |
void CView::updatePlayer | ( | const SGameObjectInfo & | player | ) |
Method for updating player.
[in] | movingBonus | player information in the view will be update by this one |
void CView::updateStaticBonuses | ( | const vector< SGameObjectInfo > & | staticBonuses | ) |
Method for updating static bonuses.
[in] | staticBonuses | information about static (non-moving) bonuses in the view will be update by these ones |