NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
ComponentInterface.cpp
Go to the documentation of this file.
00001 
00011 #include "ComponentInterface.h"
00012 
00013 // Standard Includes
00014 
00015 // Library Includes
00016 
00017 // Local Includes
00018 #include "Entity.h"
00019 #include "EventLogger.h"
00020 
00021 // Typedefs
00022 
00023 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00024 ComponentInterface::ComponentInterface(EntitySPTR owner, ModuleInterface* mod) : owner(owner), module(mod) {
00025   this->owner->RegisterComponent(this);
00026   //LOG(LOG_PRIORITY::FLOW, "Component for entity '" + this->owner->GetName() + "' created.");
00027 };
00028 
00029 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00030 ComponentInterface::~ComponentInterface(void) {
00031   this->owner->UnregisterComponent(this);
00032   //LOG(LOG_PRIORITY::FLOW, "Component for entity '" + this->owner->GetName() + "' destroyed.");
00033 }