YAPOG  0.0.1
Yet Another Pokemon Online Game
SkillInfo.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
5  const ID SkillInfo::DEFAULT_ID (0);
12  const TypeInfo SkillInfo::DEFAULT_TYPE = TypeInfo (ID (100));
18 
20  : staticID_ (DEFAULT_ID)
21  , name_ (DEFAULT_NAME)
22  , description_ (DEFAULT_DESCRIPTION)
23  , power_ (DEFAULT_POWER)
24  , pp_ (DEFAULT_PP)
25  , maxPP_ (DEFAULT_MAX_PP)
26  , accuracy_ (DEFAULT_ACCURACY)
27  , type_ (DEFAULT_TYPE)
28  , category_ (DEFAULT_CATEGORY)
29  , target_ (DEFAULT_TARGET)
30  , effect_ (DEFAULT_EFFECT)
31  , use_ (DEFAULT_USE)
32  , priority_ (DEFAULT_PRIORITY)
33  {
34  }
35 
37  : staticID_ (id)
38  , name_ (DEFAULT_NAME)
39  , description_ (DEFAULT_DESCRIPTION)
40  , power_ (DEFAULT_POWER)
41  , pp_ (DEFAULT_PP)
42  , maxPP_ (DEFAULT_MAX_PP)
43  , accuracy_ (DEFAULT_ACCURACY)
44  , type_ (DEFAULT_TYPE)
45  , category_ (DEFAULT_CATEGORY)
46  , target_ (DEFAULT_TARGET)
47  , effect_ (DEFAULT_EFFECT)
48  , use_ (DEFAULT_USE)
49  , priority_ (DEFAULT_PRIORITY)
50  {
51  }
52 
54  : staticID_ (copy.staticID_)
55  , name_ (copy.name_)
56  , description_ (copy.description_)
57  , power_ (copy.power_)
58  , pp_ (copy.pp_)
59  , maxPP_ (copy.maxPP_)
60  , accuracy_ (copy.accuracy_)
61  , type_ (copy.type_)
62  , category_ (copy.category_)
63  , target_ (copy.target_)
64  , effect_ (copy.effect_)
65  , use_ (copy.use_)
66  , priority_ (copy.priority_)
67  {
68  }
69 
73  {
74  return new SkillInfo (*this);
75  }
77 
79  const ID& SkillInfo::GetID () const
80  {
81  return staticID_;
82  }
83 
84  const String& SkillInfo::GetName () const
85  {
86  return name_;
87  }
88 
90  {
91  return description_;
92  }
93 
94  const UInt16& SkillInfo::GetPower () const
95  {
96  return power_;
97  }
98 
99  const UInt16& SkillInfo::GetPP () const
100  {
101  return pp_;
102  }
103 
104  const UInt16& SkillInfo::GetMaxPP () const
105  {
106  return maxPP_;
107  }
108 
110  {
111  return accuracy_;
112  }
113 
114  const TypeInfo& SkillInfo::GetType () const
115  {
116  return type_;
117  }
118 
120  {
121  return category_;
122  }
123 
124  const UInt16& SkillInfo::GetTarget () const
125  {
126  return target_;
127  }
128 
129  const UInt16& SkillInfo::GetEffect () const
130  {
131  return effect_;
132  }
133 
134  const UInt16& SkillInfo::GetUse () const
135  {
136  return use_;
137  }
138 
140  {
141  return priority_;
142  }
143 
145  void SkillInfo::SetID (const ID& id)
146  {
147  staticID_ = id;
148  }
149 
150  void SkillInfo::SetName (const String& name)
151  {
152  name_ = name;
153  }
154 
155  void SkillInfo::SetDescription (const String& description)
156  {
157  description_ = description;
158  }
159 
160  void SkillInfo::SetPower (const UInt16& value)
161  {
162  power_ = value;
163  }
164 
165  void SkillInfo::SetPP (const UInt16& value)
166  {
167  pp_ = value;
168  }
169 
170  void SkillInfo::SetMaxPP (const UInt16& value)
171  {
172  maxPP_ = value;
173  }
174 
175  void SkillInfo::SetAccuracy (const UInt16& value)
176  {
177  accuracy_ = value;
178  }
179 
180  void SkillInfo::SetType (const TypeInfo& value)
181  {
182  type_ = value;
183  }
184 
185  void SkillInfo::SetCategory (const UInt16& value)
186  {
187  category_ = value;
188  }
189 
190  void SkillInfo::SetTarget (const UInt16& value)
191  {
192  target_ = value;
193  }
194 
195  void SkillInfo::SetEffect (const UInt16& value)
196  {
197  effect_ = value;
198  }
199 
200  void SkillInfo::SetUse (const UInt16& value)
201  {
202  use_ = value;
203  }
204 
205  void SkillInfo::SetPriority (const UInt16& value)
206  {
207  priority_ = value;
208  }
209 
210 } // namespace yap