#pragma once #include "Entity.h" #include "Component/Transform.h" namespace Seele { DECLARE_REF(Actor) // Actors are entities that are part of the scene hierarchy // In order for that hierarchy to make sense it requires at least a transform component class Actor : public Entity { public: Actor(PScene scene); virtual ~Actor(); PActor getParent(); void addChild(PActor child); void removeChild(PActor child); Array getChildren(); Component::Transform& getTransform(); protected: //Component::Transform& getTransform(); void setParent(PActor parent); PActor parent; Array children; }; DEFINE_REF(Actor) } // namespace Seele