/[anoncvs]/projects/roguelike/Terrain.h


UCC Code Repository

Contents of /projects/roguelike/Terrain.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 5 03:43:59 2006 UTC (15 years, 5 months ago) by banana
Branch: MAIN
Changes since 1.1: +10 -1 lines
File MIME type: text/plain
Use wstring instead of string everywhere that it makes sense

1 /*
2 * Terrain - A part of the world
3 *
4 * Some common ids:
5 * 0: floor
6 * 1: wall
7 */
8
9 #include "Entity.h"
10 #define kMaxTerrainID 1
11
12 class Terrain : public Entity {
13 public:
14 //Terrain cache, loaded at program initialisation
15 static Terrain cache[2];
16
17 //Constructor that copies a terrain out of the cache
18 Terrain(int id);
19
20 //Inline inherited basic-value constructor
21 Terrain(std::wstring n, unichar s) : Entity(n, s) {
22 }
23 };

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26