Every actor in the game, be it a character or otherwise, is managed by the scene manager.
I mean what I said in the last post: Your Game class example has a member called “std::vector characters”. It’s pseudocode so I don’t know what the vector actually contains, but I would assume it is an array of Actor * (why would Character inherit from Behavior instead of Actor? A Character is an Actor).
To be clear: a Character is a form of actor and should inherit from Actor.
SceneManager should have std::vector<Actor *> m_vActors, which is an array of all characters/actors in the scene.
L. Spiro
That's what I do. The single responsability of my scene is to manage actors. It manages a array of actor. I was thinking that inheriting from an Actor was a bad idea (using composition over inhertance), but if my Character is an Actor, it'll make the scene a lot more easier to manage.