Files
SDLPongCPP/.svn/pristine/e3/e3ccc4a9af6badaac845123ac00530c3371d604b.svn-base
T
2018-06-25 21:48:45 -04:00

37 lines
522 B
Plaintext

#include "cObject.hpp"
#include "../cGUI.hpp"
using GUIHelpers::cObject;
cObject::cObject( const signed int id )
: m_id(id)
{
//GUIEngine::cGUI::Inst().AddObject(this);
}
/*virtual*/ cObject::~cObject()
{}
bool cObject::operator == (const cObject& other)
{
if (m_id == other.getID())
return true;
else
return false;
}
///Functions
///Sets
///Gets
const signed int cObject::getID() const
{
return m_id;
}
/*virtual*/ const GUIHelpers::eType cObject::getType() const
{
return GUIHelpers::eType::COBJECT;
}