• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

granatier

Signals | Public Member Functions | List of all members
GameScene Class Reference

#include <gamescene.h>

Inheritance diagram for GameScene:
Inheritance graph
[legend]

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_gamethe 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.

void GameScene::resizeGraphics ( qreal  svgScaleFactor)
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:
  • gamescene.h
  • gamescene.cpp
This file is part of the KDE documentation.
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.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal