Pac-Man
Public Member Functions | List of all members
CView Class Reference

A class that handle the window and graphics draw. More...

#include <CView.h>

Collaboration diagram for CView:
Collaboration graph

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
 

Detailed Description

A class that handle the window and graphics draw.

Constructor & Destructor Documentation

◆ CView()

CView::CView ( const SSize mapSize)

constructs valid cviw with window already opened

Parameters
[in]mapSizesize of the map that will be used in the game (size is in tiles)

Member Function Documentation

◆ updateGameDisplayInfo()

void CView::updateGameDisplayInfo ( const SDisplayInfo displayInfo)

Method updating game display info.

Parameters
[in]displayInfodisplay information in the view will be updated by this one

◆ updateGhosts()

void CView::updateGhosts ( const vector< SGameObjectInfo > &  ghosts)

Method for updating ghosts.

Parameters
[in]ghostsinformation about ghosts in the view will be update by these ones

◆ updateMap()

void CView::updateMap ( const vector< vector< SGameObjectInfo >> &  map)

Method for updating map.

Parameters
[in]mapmap information in the view will be update by this one

◆ updateMovingBonus()

void CView::updateMovingBonus ( const SGameObjectInfo movingBonus)

Method for updating moving bonus.

Parameters
[in]movingBonusmoving bonus informationin the view will be update by this one

◆ updatePlayer()

void CView::updatePlayer ( const SGameObjectInfo player)

Method for updating player.

Parameters
[in]movingBonusplayer information in the view will be update by this one

◆ updateStaticBonuses()

void CView::updateStaticBonuses ( const vector< SGameObjectInfo > &  staticBonuses)

Method for updating static bonuses.

Parameters
[in]staticBonusesinformation about static (non-moving) bonuses in the view will be update by these ones

The documentation for this class was generated from the following files: