2019-03-05 03:44:00 +00:00
|
|
|
#include "aiPlayerObject.h"
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_CO_NETOBJECT_V1(AIPlayerObject);
|
|
|
|
|
|
|
|
|
|
AIPlayerObject::AIPlayerObject()
|
2019-05-12 02:42:27 +00:00
|
|
|
//: mAIControllerComponent(nullptr)
|
2019-03-05 03:44:00 +00:00
|
|
|
{
|
2019-05-12 02:42:27 +00:00
|
|
|
mSuperClassName = StringTable->insert("Entity");
|
2019-03-05 03:44:00 +00:00
|
|
|
}
|
|
|
|
|
AIPlayerObject::~AIPlayerObject()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool AIPlayerObject::onAdd()
|
|
|
|
|
{
|
|
|
|
|
if (!Parent::onAdd())
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
//If we don't delinate from the template, just spawn as apropos here
|
|
|
|
|
if (!mDirtyGameObject)
|
|
|
|
|
{
|
|
|
|
|
//AI Controller
|
2019-05-12 02:42:27 +00:00
|
|
|
/*mAIControllerComponent = new AIControllerComponent();
|
2019-03-05 03:44:00 +00:00
|
|
|
if (!mAIControllerComponent->registerObject())
|
|
|
|
|
{
|
|
|
|
|
Con::errorf("PlayerObject::onAdd - unable to add mAIControllerComponent!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mAIControllerComponent->setInternalName("aiControllerComponent");
|
|
|
|
|
|
2019-05-12 02:42:27 +00:00
|
|
|
addComponent(mAIControllerComponent);*/
|
2019-03-05 03:44:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AIPlayerObject::onRemove()
|
|
|
|
|
{
|
|
|
|
|
Parent::onRemove();
|
2019-05-12 02:42:27 +00:00
|
|
|
}
|