• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kgoldrunner

KGrPlayField Class Reference

#include <kgrplayfield.h>

Inheritance diagram for KGrPlayField:

Inheritance graph
[legend]

List of all members.


Detailed Description

The KGrPlayField is a KGameCanvasGroup managing the graphical representation of the playfield.

Definition at line 30 of file kgrplayfield.h.


Public Member Functions

 KGrPlayField (KGameCanvasAbstract *canvas=NULL)
void setBackground (const bool create, const QPixmap &background, const QPoint &tl)
void setTile (int x, int y, int tilenum)
void setTiles (QList< QPixmap > *tileset, const QPoint &topLeft, const int h, const int v, const int tilewidth, const int tileheight)
 ~KGrPlayField ()

Constructor & Destructor Documentation

KGrPlayField::KGrPlayField ( KGameCanvasAbstract *  canvas = NULL  )  [explicit]

Constructor.

Definition at line 22 of file kgrplayfield.cpp.

KGrPlayField::~KGrPlayField (  ) 

Destructor.

Definition at line 28 of file kgrplayfield.cpp.


Member Function Documentation

void KGrPlayField::setBackground ( const bool  create,
const QPixmap &  background,
const QPoint &  tl 
)

Set the background for the playground.

Definition at line 50 of file kgrplayfield.cpp.

void KGrPlayField::setTile ( int  x,
int  y,
int  tilenum 
)

Set the tile at grid position (x, y) to be tilenum.

Definition at line 36 of file kgrplayfield.cpp.

void KGrPlayField::setTiles ( QList< QPixmap > *  tileset,
const QPoint &  topLeft,
const int  h,
const int  v,
const int  tilewidth,
const int  tileheight 
)

Set the tileset to use for the playfield and clear it to the background.

Parameters:
[in] topLeft The origin relative to the canvas.
[in] h Playground height, in number of tiles
[in] v Playground width, in number of tiles
[in] tilewidth The width of a single tile.
[in] tileheight The height of a single tile.
tileset List of tiles.

Definition at line 68 of file kgrplayfield.cpp.


The documentation for this class was generated from the following files:
  • kgrplayfield.h
  • kgrplayfield.cpp

kgoldrunner

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal