PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TCommon/Gene/Status/GEDaze.cpp

http://awoe.googlecode.com/
C++ | 38 lines | 24 code | 7 blank | 7 comment | 1 complexity | ebd799cc43f8ee4f5da5fae2aeb12b3e MD5 | raw file
 1///////////////////////////////////////////////////////////////////////////////////////////////////
 2// GEDaze.cpp
 3// 2010?1?20?
 4// Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
 5//
 6// 
 7///////////////////////////////////////////////////////////////////////////////////////////////////
 8
 9
10
11#include "stdafx.h"
12#include "GEDaze.h"
13#include "Entity/EntityIf.h"
14#include "Combat/CombatSysIf.h"
15
16GEDaze::GEDaze() 
17{
18}
19bool
20GEDaze::onAttach()
21{
22	if (!__super::onAttach())
23	{
24		return false;
25	}
26	
27	m_wpCombat->setFlg(Combat::FIdx_Daze);
28	return true;
29}
30
31bool
32GEDaze::onDetach()
33{
34	__super::onDetach();
35
36	m_wpCombat->clrFlg(Combat::FIdx_Daze);
37	return true;
38}