/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
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // GEDaze.cpp
- // 2010?1?20?
- // Copyright ?2007, 2010, 8DWorld, Inc. All rights reserved.
- //
- //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
-
-
-
- #include "stdafx.h"
- #include "GEDaze.h"
- #include "Entity/EntityIf.h"
- #include "Combat/CombatSysIf.h"
-
- GEDaze::GEDaze()
- {
- }
- bool
- GEDaze::onAttach()
- {
- if (!__super::onAttach())
- {
- return false;
- }
-
- m_wpCombat->setFlg(Combat::FIdx_Daze);
- return true;
- }
-
- bool
- GEDaze::onDetach()
- {
- __super::onDetach();
-
- m_wpCombat->clrFlg(Combat::FIdx_Daze);
- return true;
- }