I was wondering if it is a bad idea to store a pointer in every Component to the Entity which owns the Component.
E.g. I have a Component "NPC". Each entity which owns this Component also must have a Position and Sprite Component. Sometimes i get a list of NPC Components from one of my Systems, but I also need the coresponding Position and Sprite Components. I can retrieve the entity, but it's quite some code I have to type and it is more expensive than just following the pointer.
So would it be a bad idea to store a pointer to the Entity in a Component?