PageRenderTime 11ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TCommon/Gene/Status/GEStun.cpp

http://awoe.googlecode.com/
C++ | 41 lines | 29 code | 5 blank | 7 comment | 1 complexity | e38b1389529b401df031bfae126a5c99 MD5 | raw file
 1///////////////////////////////////////////////////////////////////////////////////////////////////
 2// GEStun.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 "GEStun.h"
13#include "Entity/EntityIf.h"
14#include "Combat/CombatSysIf.h"
15#include "Gene/GeneCreateDataIf.h"
16
17GEStun::GEStun() 
18{
19}
20bool
21GEStun::onAttach()
22{
23	if (__super::onAttach())
24	{
25		m_wpHost->setMoveState(Move::mst_Freeze);
26		m_wpCombat->setFlg(Combat::FIdx_ZeroToDodge);
27		return true;
28	}
29	else
30	{
31		return false;
32	}
33}
34
35bool
36GEStun::onDetach()
37{
38	m_wpHost->setMoveState(Move::mst_Idle);
39	m_wpCombat->clrFlg(Combat::FIdx_ZeroToDodge);
40	return __super::onDetach();
41}