summaryrefslogtreecommitdiffstats
path: root/src/object.h
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-05-03 11:55:43 +0000
committerAaron Marks <nymacro@gmail.com>2005-05-03 11:55:43 +0000
commitaede3ee7379be250a538c31f03f2a922846760fb (patch)
tree23eadaea6739481cadbf6781d70bcd4a4296f3c4 /src/object.h
parentcf2ea39a097fe5dff2caea574bf2e2227b4d07b9 (diff)
downloadmanaserv-aede3ee7379be250a538c31f03f2a922846760fb.tar.gz
manaserv-aede3ee7379be250a538c31f03f2a922846760fb.tar.xz
manaserv-aede3ee7379be250a538c31f03f2a922846760fb.zip
Updated CharData structure (defines.h).
Removed "Player" object & made a more general "Being" object which can be used for Player, Pet, Monsters etc.
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/object.h b/src/object.h
index 55aa461..671a68f 100644
--- a/src/object.h
+++ b/src/object.h
@@ -21,10 +21,15 @@
* $Id$
*/
+
+#ifndef OBJECT_H
+#define OBJECT_H
+
#include <iostream>
/*
* Generic In-Game Object Definition
+ * Base class for in-game objects
*/
class Object
{
@@ -37,19 +42,24 @@ class Object
/*
* Generic Being (Living Object)
+ * Used for Player & Monster (all animate objects)
*/
class Being : public Object
{
- //Object name
+ public:
+ //Being name
std::string name;
- //Object level
+ //Being gender
+ unsigned int gender;
+
+ //Being level
unsigned int level;
- //Object money
+ //Being money
unsigned int money;
- //Object statistics
+ //Being statistics
unsigned int strength;
unsigned int agility;
unsigned int vitality;
@@ -57,22 +67,12 @@ class Being : public Object
unsigned int dexterity;
unsigned int luck;
- //Object inventory/equiped items
+ //Being inventory/equiped items
//Inventory inventory;
//Equipment equipment;
- public:
- virtual ~Being() { };
- void update() { };
-};
-
-/*
- * Player object
- */
-class Player : public Being
-{
- //Player gender (male = true, female = false)
- bool gender;
- public:
+ ~Being() { } //empty definition
+ void update() { } //empty definition
};
+#endif