/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. #include "stdafx.h"
  9. #include "GEDaze.h"
  10. #include "Entity/EntityIf.h"
  11. #include "Combat/CombatSysIf.h"
  12. GEDaze::GEDaze()
  13. {
  14. }
  15. bool
  16. GEDaze::onAttach()
  17. {
  18. if (!__super::onAttach())
  19. {
  20. return false;
  21. }
  22. m_wpCombat->setFlg(Combat::FIdx_Daze);
  23. return true;
  24. }
  25. bool
  26. GEDaze::onDetach()
  27. {
  28. __super::onDetach();
  29. m_wpCombat->clrFlg(Combat::FIdx_Daze);
  30. return true;
  31. }