]>
jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/ArmorGO.cpp
1 #include <GameServ/GameLayer/GameObjects/ArmorGO.h>
2 using GameServ::GameLayer::GameObjects::ArmorGO
;
4 #include <GameServ/Types.h>
5 using GameServ::Types::Modifiers
;
6 using GameServ::Types::ItemTypes
;
13 #include <boost/format.hpp>
14 #include <boost/algorithm/string.hpp>
19 ArmorGO::ArmorGO() : ItemGO()
23 ArmorGO::ArmorGO(const string
&name
, const int &price
, const int &uses
, const int &strength
, const int &defense
, const int &maxhealth
) :
30 mModifiers
[Modifiers::strength
] = Range(strength
, strength
);
31 mModifiers
[Modifiers::defense
] = Range(defense
, defense
);
32 mModifiers
[Modifiers::maxhealth
] = Range(maxhealth
, maxhealth
);
39 ItemTypes::ItemType
ArmorGO::Type(void) const
41 return ItemTypes::Armor
;
44 ArmorGO
*ArmorGO::Clone(void) const
46 return new ArmorGO(*this);