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


UCC Code Repository

Contents of /projects/roguelike/Terrain.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Apr 5 06:06:39 2006 UTC (15 years, 6 months ago) by banana
Branch: MAIN
Changes since 1.2: +3 -1 lines
File MIME type: text/plain
Terrain loading almost finished

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 bool opaque; //False if this terrain can be walked on/seen through
14 public:
15 //Terrain cache, loaded at program initialisation
16 static Terrain *cache[2];
17
18 //Constructor that copies a terrain out of the cache
19 Terrain(int id);
20
21 //Inline inherited basic-value constructor
22 Terrain(std::wstring n, unichar s) : Entity(n, s) {
23 opaque = false;
24 }
25 };

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26