src/libUnuk/Entity.cpp
Go to the documentation of this file.

    00001 #include "Entity.h"
    00002
    00003 Entity::Entity(GameWorld* const gameWorld) :
    00004     m_canBeRemoved(false),
    00005     m_world(gameWorld) {}
    00006
    00007 Entity::~Entity(void) {}
    00008
    00009 bool Entity::CanBeRemoved(void) const {
    00010   return m_canBeRemoved;
    00011 }
    00012
    00013 void Entity::Destroy(void) {
    00014   m_canBeRemoved = true;
    00015 }
    00016
    00017 void Entity::Prepare(float dt) {
    00018   OnPrepare(dt);
    00019 }
    00020
    00021 void Entity::Render(void) const {
    00022   OnRender();
    00023 }
    00024
    00025 void Entity::OnPostRender(void) {
    00026   OnPostRender();
    00027 }
    00028
    00029 bool Entity::Initialize(void) {
    00030   return OnInitiaize();
    00031 }
    00032
    00033 void Entity::Shutdown(void) {
    00034   OnShutdown();
    00035 }

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines