granatier
#include <gamescene.h>
Signals | |
void | resizeGraphics (qreal svgScaleFactor) |
Public Member Functions | |
GameScene (Game *p_game, KgThemeProvider *p_themeProvider) | |
~GameScene () | |
void | cleanUp () |
void | cleanUpItemsWithGraphicsFromTheme () |
Game * | getGame () const |
void | init () |
void | initItemsWithGraphicsFromTheme () |
KGameRenderer * | renderer (Granatier::Element::Type type, Player *player=NULL) |
void | resizeSprites (int delayForBackground=0) |
void | setupThemeRenderer () |
void | showScore () |
Detailed Description
This class contains all the Game elements to be drawn on the screen by the GameView instance.
Definition at line 50 of file gamescene.h.
Constructor & Destructor Documentation
GameScene::GameScene | ( | Game * | p_game, |
KgThemeProvider * | p_themeProvider | ||
) |
Creates a new GameScene instance.
- Parameters
-
p_game the Game instance whose elements must be contained in the GameScene in order to be drawn
Definition at line 51 of file gamescene.cpp.
GameScene::~GameScene | ( | ) |
Deletes the Game instance.
Definition at line 492 of file gamescene.cpp.
Member Function Documentation
void GameScene::cleanUp | ( | ) |
Cleans class.
Definition at line 521 of file gamescene.cpp.
void GameScene::cleanUpItemsWithGraphicsFromTheme | ( | ) |
Initializes all items with graphics from the theme.
Definition at line 538 of file gamescene.cpp.
Game * GameScene::getGame | ( | ) | const |
- Returns
- the Game instance
Definition at line 714 of file gamescene.cpp.
void GameScene::init | ( | ) |
Initializes class.
Definition at line 205 of file gamescene.cpp.
void GameScene::initItemsWithGraphicsFromTheme | ( | ) |
Initializes all items with graphics from the theme.
Definition at line 271 of file gamescene.cpp.
KGameRenderer * GameScene::renderer | ( | Granatier::Element::Type | type, |
Player * | player = NULL |
||
) |
Returns the renderer for the requestet Element Type.
- Parameters
-
type strPlayerID
Definition at line 638 of file gamescene.cpp.
|
signal |
Signals that the graphics need an update.
void GameScene::resizeSprites | ( | int | delayForBackground = 0 | ) |
Updates the sprites after a resize.
Definition at line 662 of file gamescene.cpp.
void GameScene::setupThemeRenderer | ( | ) |
setup the KGameRenderer for the selected theme and if necessary the default theme
Definition at line 112 of file gamescene.cpp.
void GameScene::showScore | ( | ) |
Shows the labels with the points.
Definition at line 657 of file gamescene.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.