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

kgoldrunner

kgrplayfield.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                          kgrscene.h  -  description
00003                              -------------------
00004     begin                : Fri Aug 04 2006
00005     Copyright 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
00006     Copyright 2006 Dmitry Suzdalev <dimsuz@gmail.com>
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef KGRPLAYFIELD_H
00019 #define KGRPLAYFIELD_H
00020 
00021 #include <kgamecanvas.h>
00022 
00023 #include <QPixmap>
00024 #include <QList>
00025 
00030 class KGrPlayField : public KGameCanvasGroup
00031 {
00032 public:
00033     explicit KGrPlayField (KGameCanvasAbstract* canvas = NULL);
00034     ~KGrPlayField();
00035 
00037     void setTile (int x, int y, int tilenum);
00038     
00040     void setBackground (const bool create, const QImage * background,
00041                 const QPoint & tl);
00042     
00050     void setTiles (QList<QPixmap> * tileset, const QPoint & topLeft,
00051     const int h, const int v, const int tilewidth, const int tileheight);
00052 
00053 private:
00054     QList<KGameCanvasPixmap *> m_tilesprites;
00055     QList<QPixmap> * m_tileset;
00056     int m_tilew;
00057     int m_tileh;
00058     int m_numTilesH;
00059     int m_numTilesV;
00060     KGameCanvasPixmap * m_background;
00061 };
00062 
00063 #endif // KGRPLAYFIELD_H

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