metaforce/Runtime/World/CRepulsor.cpp

25 lines
689 B
C++

#include "CRepulsor.hpp"
#include "CActorParameters.hpp"
#include "TCastTo.hpp"
namespace urde
{
CRepulsor::CRepulsor(TUniqueId uid, bool active, const std::string& name, const CEntityInfo& info,
const zeus::CVector3f& pos, float radius)
: CActor(uid, active, name, info, zeus::CTransform::Translate(pos), CModelData::CModelDataNull(), CMaterialList(),
CActorParameters::None(), kInvalidUniqueId)
, xe8_affectRadius(radius)
{
}
void CRepulsor::Accept(IVisitor& visitor)
{
visitor.Visit(this);
}
void CRepulsor::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr)
{
CActor::AcceptScriptMsg(msg, objId, stateMgr);
}
}