Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

EditorTile.h

Go to the documentation of this file.
00001 //
00002 //                                 EditorTile.h
00003 //                             -------------------
00004 //    begin                : Tue Mar 19 2002
00005 //    copyright            : (C) 2002 by Rob Renaud
00006 //    email                : rrenaud@eden.rutgers.edu
00007 //
00008 //   This program is free software; you can redistribute it and/or modify
00009 //   it under the terms of the GNU General Public License as published by
00010 //   the Free Software Foundation; either version 2 of the License, or
00011 //   (at your option) any later version.
00012 //
00013 
00014 #ifndef EDITOR_TILE_H_
00015 #define EDITOR_TILE_H_
00016 
00017 #include "../Config.h"
00018 
00019 #include "TileSetEditor.h"
00020 #include "../Game/Tile.h"
00021 #include "../Graphics/draw.h"
00022 
00023 namespace Editor {
00024         class EditorTile : public Graphics::DrawableAt {
00025         public:
00026                 EditorTile(Game::AbstractTile* tile, int tileSetIndex);
00027                 ~EditorTile();
00028                 void drawAt(SDL_Surface* surf, SDL_Rect* dest);
00029                 
00030                 void incrementTile(const TileSetEditor& ts);
00031                 void decrementTile(const TileSetEditor& ts);
00033                 void reload(const TileSetEditor& ts);
00034 
00035                 void setAsTile(const TileSetEditor& ts, int index);
00036 
00037                 int getIndex() const;
00038         private:
00039                 Game::AbstractTile* tile;
00040                 int curIndex;           
00041         };
00042 } // namespace Editor
00043 
00044 #endif  // ifndef EDITOR_TILE_H_

Generated on Tue May 21 07:26:51 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001