2013-12-10 09:57:05 +01:00
|
|
|
#include "AttatchmentSocket.h"
|
|
|
|
#include "IAttatchment.h"
|
2014-01-14 10:28:12 +01:00
|
|
|
#include "DynamicArray.h"
|
|
|
|
|
2013-12-10 09:57:05 +01:00
|
|
|
using namespace GameLogic;
|
2014-01-14 10:28:12 +01:00
|
|
|
using namespace Utility::DynamicMemory;
|
2013-12-10 09:57:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
AttatchmentSocket::AttatchmentSocket(void)
|
|
|
|
{
|
2014-01-27 13:54:57 +01:00
|
|
|
this->attatchment = 0;
|
2013-12-10 09:57:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AttatchmentSocket::~AttatchmentSocket(void)
|
|
|
|
{
|
2014-02-04 16:07:10 +01:00
|
|
|
if(this->attatchment)
|
|
|
|
delete this->attatchment;
|
|
|
|
|
|
|
|
this->attatchment = 0;
|
2013-12-10 09:57:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
IAttatchment* AttatchmentSocket::GetAttatchment()
|
|
|
|
{
|
2014-01-27 13:54:57 +01:00
|
|
|
return this->attatchment;
|
2013-12-12 09:36:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void AttatchmentSocket::SetAttatchment(IAttatchment *attatchment)
|
|
|
|
{
|
2014-01-27 13:54:57 +01:00
|
|
|
this->attatchment = attatchment;
|
2013-12-12 09:36:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void AttatchmentSocket::RemoveAttatchment()
|
|
|
|
{
|
2014-01-14 10:28:12 +01:00
|
|
|
|
2014-01-27 13:54:57 +01:00
|
|
|
this->attatchment = 0;
|
2014-01-14 10:28:12 +01:00
|
|
|
|
2013-12-10 09:57:05 +01:00
|
|
|
}
|