DragonNest/GameCommon/DnDisableActionBlow.cpp
2024-12-20 16:56:44 +08:00

66 lines
3 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "StdAfx.h"
#include "DnDisableActionBlow.h"
#if !defined( USE_BOOST_MEMPOOL )
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
#endif // #if !defined( USE_BOOST_MEMPOOL )
CDnDisableActionBlow::CDnDisableActionBlow( DnActorHandle hActor, const char* szValue ) : CDnBlow( hActor )
{
m_StateBlow.emBlowIndex = STATE_BLOW::BLOW_224;
SetValue( szValue );
SetBlowInfo();
}
void CDnDisableActionBlow::SetBlowInfo()
{
std::string str = m_StateBlow.szValue;;
std::string delimiters = ";";
TokenizeA(str, m_vecActionList, delimiters);
}
bool CDnDisableActionBlow::IsMatchedAction(const char* strAction)
{
for(DWORD i=0; i<m_vecActionList.size() ; i++)
{
if( strcmp(strAction , m_vecActionList[i].c_str() ) == 0)
return true;
}
return false;
}
CDnDisableActionBlow::~CDnDisableActionBlow(void)
{
}
void CDnDisableActionBlow::OnBegin( LOCAL_TIME LocalTime, float fDelta )
{
}
void CDnDisableActionBlow::Process( LOCAL_TIME LocalTime, float fDelta )
{
__super::Process( LocalTime, fDelta );
}
void CDnDisableActionBlow::OnEnd( LOCAL_TIME LocalTime, float fDelta )
{
__super::OnEnd(LocalTime, fDelta);
}
#if defined(PRE_ADD_PREFIX_SYSTE_RENEW)
void CDnDisableActionBlow::AddStateEffectValue(const char* szOrigValue, const char* szAddValue, std::string& szNewValue)
{
}
void CDnDisableActionBlow::RemoveStateEffectValue(const char* szOrigValue, const char* szAddValue, std::string& szNewValue)
{
}
#endif // PRE_ADD_PREFIX_SYSTE_RENEW