Add project files.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user