Danbias/Code/Game/GameLogic/AttatchmentSocket.cpp

39 lines
619 B
C++
Raw Normal View History

#include "AttatchmentSocket.h"
#include "IAttatchment.h"
#include "DynamicArray.h"
using namespace GameLogic;
using namespace Utility::DynamicMemory;
AttatchmentSocket::AttatchmentSocket(void)
{
this->attatchment = 0;
}
AttatchmentSocket::~AttatchmentSocket(void)
{
2014-02-12 13:12:51 +01:00
//if(this->attatchment)
//delete this->attatchment;
2014-02-12 13:12:51 +01:00
//this->attatchment = 0;
}
IAttatchment* AttatchmentSocket::GetAttatchment()
{
return this->attatchment;
}
void AttatchmentSocket::SetAttatchment(IAttatchment *attatchment)
{
this->attatchment = attatchment;
}
void AttatchmentSocket::RemoveAttatchment()
{
this->attatchment = 0;
}