diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-15 21:28:10 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-16 13:19:09 -0600 |
commit | d8d9232a67a03548b827bdb0515fe7a620a488f8 (patch) | |
tree | d6e0644f99e0ff89f9b320c0b479ba5a4e398125 /src/variabledata.h | |
parent | a6c2b90c2dabac18ad8052d948bc540406b3a613 (diff) | |
download | mana-client-d8d9232a67a03548b827bdb0515fe7a620a488f8.tar.gz mana-client-d8d9232a67a03548b827bdb0515fe7a620a488f8.tar.bz2 mana-client-d8d9232a67a03548b827bdb0515fe7a620a488f8.tar.xz mana-client-d8d9232a67a03548b827bdb0515fe7a620a488f8.zip |
Move more to the event system
Most of Net::InventoryHandler is now done through events. The
ActorSpriteManager was also replaced by events. A few odds and
ends were taken care of too.
Reviewed-by: Bertram
Diffstat (limited to 'src/variabledata.h')
-rw-r--r-- | src/variabledata.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/variabledata.h b/src/variabledata.h index f73ebab2..19e09795 100644 --- a/src/variabledata.h +++ b/src/variabledata.h @@ -23,6 +23,9 @@ #include <string> +class ActorSprite; +class Item; + namespace Mana { @@ -35,7 +38,9 @@ class VariableData DATA_INT, DATA_STRING, DATA_FLOAT, - DATA_BOOL + DATA_BOOL, + DATA_ITEM, + DATA_ACTOR }; virtual ~VariableData() {}; @@ -95,6 +100,32 @@ private: bool mData; }; +class ItemData : public VariableData +{ +public: + ItemData(Item *value) { mData = value; } + + Item *getData() const { return mData; } + + int getType() const { return DATA_ITEM; } + +private: + Item *mData; +}; + +class ActorData : public VariableData +{ +public: + ActorData(ActorSprite *value) { mData = value; } + + ActorSprite *getData() const { return mData; } + + int getType() const { return DATA_ACTOR; } + +private: + ActorSprite *mData; +}; + } // namespace Mana #endif |