PageRenderTime 26ms CodeModel.GetById 12ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TCommon/Combat/CombatSysDummy.cpp

http://awoe.googlecode.com/
C++ | 262 lines | 204 code | 54 blank | 4 comment | 0 complexity | 9be5c7359823ab6ea600f0750cacb192 MD5 | raw file
  1#include "stdafx.h"
  2#include "CombatSysDummy.h"
  3
  4
  5
  6CombatSysDummy::CombatSysDummy()
  7{
  8}
  9
 10CombatSysDummy::~CombatSysDummy()
 11{
 12}
 13
 14
 15void
 16CombatSysDummy::setExtData(short nIdx, const int& nValue /* = 0 */)
 17{
 18	//
 19	//	Not Implement Yet
 20}
 21
 22int
 23CombatSysDummy::getExtData(short nIdx, const int& nValue /* = 0 */)
 24{
 25	//
 26	//	Not Implement Yet
 27	return 0;
 28}
 29
 30int 
 31CombatSysDummy::getHP()const
 32{
 33	return int(0);
 34}
 35
 36int 
 37CombatSysDummy::getMaxHP()const
 38{
 39	return int(0);
 40}
 41
 42int
 43CombatSysDummy::getMP()const
 44{
 45	return int(0);
 46}
 47
 48int
 49CombatSysDummy::getHPPercentage()const
 50{
 51	return 0;
 52}
 53
 54int 
 55CombatSysDummy::getMPPercentage()const
 56{
 57	return 0;
 58}
 59
 60int 
 61CombatSysDummy::getBottleHP()const
 62{
 63	return 0;
 64}
 65
 66int
 67CombatSysDummy::getBottleMP()const
 68{
 69	return 0;
 70}
 71
 72int	CombatSysDummy::getHpBottleNum()const
 73{
 74	return 0;
 75}
 76
 77int CombatSysDummy::getMpBottleNum()const
 78{
 79	return 0 ;
 80}
 81
 82int
 83CombatSysDummy::getLevelModifier(short nIdx)
 84{
 85	return 1;
 86}
 87
 88bool 
 89CombatSysDummy::updateLevelModifier(short nIdx, short nAffectValue)
 90{
 91	return false;
 92}
 93
 94void
 95CombatSysDummy::updateHPByPercentage(int nPercent)
 96{
 97}
 98
 99void CombatSysDummy::updateHPBottleValue(int nAffectValue)
100{
101}
102
103void CombatSysDummy::updateMPBottleValue(int nAffectValue)
104{
105
106}
107
108void
109CombatSysDummy::updateHP(int nAffectValue)
110{
111}
112
113void
114CombatSysDummy::updateMP(int nAffectValue)
115{
116}
117
118void
119CombatSysDummy::updateMaxHP(int nAffectValue)
120{
121}
122
123bool CombatSysDummy::addImmunity(int nKey)
124{
125	return true;
126}
127
128bool CombatSysDummy::rmvImmunity(int nKey)
129{
130	return true;
131}
132
133bool CombatSysDummy::hasImmunity(int nKey)const
134{
135	return false;
136}
137
138
139bool 
140CombatSysDummy::sendMsg_CbtTargt(IEntity& t)
141{
142	return true;
143}
144
145bool 
146CombatSysDummy::sendMsg_CbtStart(IEntity& t, CombatSkill& ab)
147{
148	return false;
149}
150
151bool 
152CombatSysDummy::sendMsg_CbtEnd()
153{
154	return false;
155}
156
157bool
158CombatSysDummy::sendMsg_CbtCancel()
159{
160	return false;
161}
162
163bool
164CombatSysDummy::onAttach()
165{
166	return true;
167}
168
169bool
170CombatSysDummy::onDetach()
171{
172	return true;
173}
174
175
176bool 
177CombatSysDummy::onUpdate(const int& nElapse)
178{
179	return true;
180}
181
182
183void 
184CombatSysDummy::onEvent(IEvt& evt)
185{
186}
187
188void 
189CombatSysDummy::onEvent_CastPrep(IEvt& evt)
190{
191}
192
193void 
194CombatSysDummy::onEvent_Cast(IEvt& evt)
195{
196}
197
198
199void 
200CombatSysDummy::onEvent_Target(IEvt& evt)
201{
202}
203
204void 
205CombatSysDummy::onEvent_CastResult(IEvt& evt)
206{
207}
208
209bool
210CombatSysDummy::hasSkill(short& nStyle)const
211{
212		return false;
213}
214
215bool
216CombatSysDummy::hasSequence(const short& nSeq)const
217{
218	return false;
219}
220
221bool 
222CombatSysDummy::EffectUpdate_CastStart(int& nTTL)
223{
224	return true;
225}
226
227bool 
228CombatSysDummy::EffectUpdate_CastCancel()
229{
230	return true;
231}
232
233bool
234CombatSysDummy::EffectUpdate_CastEnding()
235{
236	return false;
237}
238
239bool 
240CombatSysDummy::EffectUpdate_CastEnded()
241{
242	return true;
243}
244
245IEntity*
246CombatSysDummy::getTarget(const int& nTargetID /* = 0 */)
247{
248	return NULL;
249}
250
251IEntity*
252CombatSysDummy::getTargetCC()
253{
254	return NULL;
255}
256
257IEntity*
258CombatSysDummy::getTargetCE()
259{
260	return NULL;
261}
262