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


UCC Code Repository

Contents of /projects/roguelike/Entity.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Apr 10 10:47:39 2006 UTC (15 years, 1 month ago) by banana
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +5 -0 lines
File MIME type: text/plain
Changed title to "Warlike" and added inter-keypress display

1 /*
2 * Entity - a basic thing in the world. Could be terrain, objects, monsters, anything.
3 */
4 #pragma once
5
6 #include "core.h"
7 #include <string>
8 #include <wchar.h>
9
10 class Entity {
11
12 protected:
13 std::wstring name;
14
15 wchar_t symbol;
16 bool seen;
17 unsigned int colour;
18
19 Entity();
20
21 public:
22 Entity(std::wstring, wchar_t, unsigned int);
23 Entity(std::wstring, wchar_t);
24
25 std::wstring describe();
26 bool needsDisplay();
27
28 attributed_char render();
29 };

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26