]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/ArmorGO.cpp
Finished out the LevelGO class for now
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / src / GameLayer / GameObjects / ArmorGO.cpp
index 7c29dd7ecda8623291916948672f72ab790a7e4a..6e8301de22e9c1717f75b57b5fe53c8753cb56b1 100644 (file)
@@ -18,7 +18,6 @@ using boost::str;
 \r
 ArmorGO::ArmorGO() : ItemGO()\r
 {\r
-       mType = ItemTypes::Armor;\r
 }\r
 \r
 ArmorGO::ArmorGO(const string &name, const int &price, const int &uses, const int &strength, const int &defense, const int &maxhealth) :\r
@@ -31,14 +30,21 @@ ItemGO()
        mModifiers[Modifiers::strength] = Range(strength, strength);\r
        mModifiers[Modifiers::defense] = Range(defense, defense);\r
        mModifiers[Modifiers::maxhealth] = Range(maxhealth, maxhealth);\r
-       mType = ItemTypes::Armor;\r
 }\r
 \r
 ArmorGO::~ArmorGO()\r
 {\r
 }\r
 \r
+ItemTypes::ItemType ArmorGO::Type(void) const\r
+{\r
+       return ItemTypes::Armor;\r
+}\r
 \r
+ArmorGO *ArmorGO::Clone(void) const\r
+{\r
+       return new ArmorGO(*this);\r
+}\r
 \r
 \r
 \r