diff options
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 48 |
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 |