summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-22 13:31:13 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-22 13:31:13 +0000
commitbd56bf8afdab16383ed8ad08412a8c807f84af85 (patch)
tree0e963ada63bcbe3c50dd77986aaa15b9ba49816a /src/being.h
parent5359640b6f271af31f6423df9d661433eff89a3e (diff)
downloadmana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.gz
mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.bz2
mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.xz
mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.zip
Merged NETWORK branch (includes BEING_OVERHAUL).
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h48
1 files changed, 7 insertions, 41 deletions
diff --git a/src/being.h b/src/being.h
index 59ee7ca2..446cb906 100644
--- a/src/being.h
+++ b/src/being.h
@@ -53,6 +53,7 @@ class Being : public Sprite
public:
enum Type {
UNKNOWN,
+ LOCALPLAYER,
PLAYER,
NPC,
MONSTER
@@ -96,12 +97,12 @@ class Being : public Sprite
/**
* Constructor.
*/
- Being();
+ Being(Uint32 id, Uint16 job, Map *map);
/**
* Destructor.
*/
- ~Being();
+ virtual ~Being();
/**
* Removes all path nodes from this being.
@@ -111,7 +112,7 @@ class Being : public Sprite
/**
* Sets a new destination for this being to walk to.
*/
- void setDestination(Uint16 destX, Uint16 destY);
+ virtual void setDestination(Uint16 destX, Uint16 destY);
/**
* Puts a "speech balloon" above this being for the specified amount
@@ -178,7 +179,7 @@ class Being : public Sprite
/**
* Performs being logic.
*/
- void
+ virtual void
logic();
/**
@@ -190,7 +191,7 @@ class Being : public Sprite
/**
* Returns the type of the being.
*/
- Type getType() const;
+ virtual Type getType() const;
/**
* Gets the weapon picture id.
@@ -276,7 +277,7 @@ class Being : public Sprite
int
getYOffset() const;
- private:
+ protected:
/**
* Sets the new path for this being.
*/
@@ -300,39 +301,4 @@ class Being : public Sprite
Sint32 mPx, mPy; /**< Pixel coordinates */
};
-/**
- * Return a specific id Being
- */
-Being*
-findNode(Uint32 id);
-
-/**
- * Return a being at specific coordinates
- */
-Being*
-findNode(Uint16 x, Uint16 y);
-
-/**
- * Return a being at specific coordinates with specific type
- */
-Being*
-findNode(Uint16 x, Uint16 y, Being::Type type);
-
-/**
- * Create a being and add it to the list of beings
- */
-Being*
-createBeing(Uint32 id, Uint16 job, Map *map);
-
-/**
- * Remove a Being
- */
-void
-remove_node(Being *being);
-
-extern Being *player_node;
-
-typedef std::list<Being*> Beings;
-extern Beings beings;
-
#endif