/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
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // GEStun.cpp
- // 2010?1?20?
- // Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
-
-
-
- #include "stdafx.h"
- #include "GEStun.h"
- #include "Entity/EntityIf.h"
- #include "Combat/CombatSysIf.h"
- #include "Gene/GeneCreateDataIf.h"
-
- GEStun::GEStun()
- {
- }
- bool
- GEStun::onAttach()
- {
- if (__super::onAttach())
- {
- m_wpHost->setMoveState(Move::mst_Freeze);
- m_wpCombat->setFlg(Combat::FIdx_ZeroToDodge);
- return true;
- }
- else
- {
- return false;
- }
- }
-
- bool
- GEStun::onDetach()
- {
- m_wpHost->setMoveState(Move::mst_Idle);
- m_wpCombat->clrFlg(Combat::FIdx_ZeroToDodge);
- return __super::onDetach();
- }