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


UCC Code Repository

Contents of /projects/roguelike/Terrain.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Apr 13 06:18:15 2006 UTC (15 years, 2 months ago) by banana
Branch: MAIN
Changes since 1.9: +3 -3 lines
File MIME type: text/plain
In the middle of adding LOS

1 /*
2 * Terrain - the details of a location on the map
3 */
4 #pragma once
5
6 //Includes
7 #include "Entity.h"
8
9 //This is a hack :/
10 #define kMaxTerrainID 2
11
12 //Class definition
13 class Terrain : public Entity {
14 bool opaque; //False if this terrain can be walked on/seen through
15 public:
16 //Terrain cache, loaded at program initialisation
17 static Terrain *cache[2];
18
19 //Constructor that copies a terrain out of the cache
20 Terrain(int id);
21
22 //Inline inherited basic-value constructor
23 Terrain(std::wstring n, wchar_t s, unsigned int c, bool o) : Entity(n, s, c) {
24 opaque = o;
25 }
26
27 bool traversable();
28 bool transparent();
29 bool memorable();
30 };

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26