Components and entities

Hey, i'm trying to make a component based entity system and have a little problem.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class ControllerComponent : public IComponent
	{
	public:
		virtual const ComponentType GetType() { return ComponentType("ControllerComponent"); }
		virtual const ComponentType GetFamilyType() { return ComponentType("ControllerComponent"); }
	
	public:
		ControllerComponent() {};
		virtual ~ControllerComponent() {};
	
		bool update(const GameTime& p_gameTime)
		{
			if(InputManager::getSingleton().isKeyPressed("left"))
			{
				
			}
	
			return true;
		}
	
	};


This is my controllerComponent, what I want to do is to let my component to know its entity, or child so to say. How do I do that? lost ^^
> what I want to do is to let my component to know its entity,
Sorry, don't follow.
Topic archived. No new replies allowed.