#include "stdafx.h" #include "actionpushpull.h" #include "gamesrv.h" #include "Monster_Common.h" #include "MonsterScript.h" #include "Monster.h" cActionPushPull::cActionPushPull(void): cAction( eACT_PUSHPULL ) { } cActionPushPull::~cActionPushPull(void) { } void cActionPushPull::ActionInit( cMonster* pMonster, unsigned long /*accumTime*/ ) { if( pMonster == NULL ) return; } eACTION_CHANGE cActionPushPull::Action( cMonster* pMonster, unsigned long deltaTime, unsigned long accumTime ) { if( pMonster == NULL ) return eACTCH_ERROR; const sMonsterScript* pMonsterScript = pMonster->GetMonsterInfo(); if( pMonsterScript == NULL ) { assert(NULL); NETWORK2->PostServerEvent("cActionRegen::Action pRegenGroupScript == NULL"); return eACTCH_ERROR; } /// ¸ó½ºÅÍ À̵¿ if( pMonster->PushPullUpdate( deltaTime ) == false ) { if( pMonster->GetIdleEndTime() > accumTime ) return eACTCH_PUSHPULL_IDLE; else return eACTCH_PUSHPULL_END; } /// Ưº°ÇÑ À̺¥Æ®¿¡ °É¸®Áö ¾Ê´Â ÇÑ °è¼Ó À̵¿ return eACTCH_CONTINUE; }