]> jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/PotionGO.cpp
Finished preliminary work on the FilePlayerDAO and FileItemDAO!!!
[irc/gameservirc.git] / gameserv-2.0 / libgameservgldl / src / GameLayer / GameObjects / PotionGO.cpp
1 #include <GameServ/GameLayer/GameObjects/PotionGO.h>
2 using GameServ::GameLayer::GameObjects::PotionGO;
3
4 #include <GameServ/Types.h>
5 using GameServ::Types::Modifiers;
6 using GameServ::Types::ItemTypes;
7
8 #include <string>
9 using std::string;
10 #include <map>
11 using std::map;
12
13 #include <boost/format.hpp>
14 #include <boost/algorithm/string.hpp>
15 using boost::format;
16 using boost::str;
17
18
19 PotionGO::PotionGO() : ItemGO()
20 {
21 mType = ItemTypes::Potion;
22 }
23
24 PotionGO::PotionGO(const string &name, const int &price, const int &uses, const int &strength, const int &defense, const int &maxhp) :
25 ItemGO()
26 {
27 mName = name;
28 mPrice = price;
29 mUses = uses;
30 mModifiers.clear();
31 mModifiers[Modifiers::strength] = strength;
32 mModifiers[Modifiers::defense] = defense;
33 mModifiers[Modifiers::maxhp] = maxhp;
34 mType = ItemTypes::Potion;
35 }
36
37 PotionGO::~PotionGO()
38 {
39 }
40
41
42
43
44
45
46
47
48