00001 /* MAINTAINER: Petko */ 00002 #include "commonentity.h" 00003 #include "log.h" 00004 00005 CommonEntity::CommonEntity() 00006 { 00007 mID = 0; 00008 } 00009 00010 CommonEntity::~CommonEntity() 00011 { 00012 00013 } 00014 00015 void CommonEntity::basicInit( int ID, GLVector3d position, GLQuaterniond orientation ) 00016 { 00017 setID( ID ); 00018 mPosition = position; 00019 mOrientation = orientation; 00020 } 00021 00022 bool CommonEntity::init() 00023 { 00024 return true; 00025 } 00026 00027 void CommonEntity::destroy() 00028 { 00029 } 00030 00031 void CommonEntity::render() 00032 { 00033 00034 } 00035 00036 00037 void CommonEntity::setID(int ID) 00038 { 00039 mID = ID; 00040 } 00041 00042 int CommonEntity::getID() 00043 { 00044 return mID; 00045 } 00046 00047 ClassType CommonEntity::getClassType() 00048 { 00049 #ifdef _DEBUG 00050 if ( mType == cInvalid ) 00051 { 00052 LOGE << "Class has an invalid value of mType ( cInvalid )!\n"; 00053 DIE(); 00054 } 00055 #endif 00056 return mType; 00057 } 00058 00059 CommonEntity::CommonEntity( const CommonEntity & ) 00060 { 00061 DIE( "Attempt to copy an instance of CommonEntity!" ); 00062 }
1.4.5