I’d like to open a discussion thread about a Game Object Component System, aka. Component Based Entity System.
There isn’t much discussion about this.
I’ve recently adopted this technique from Game Programming Gems 6, and I find it’s far superior to the old inheritance way. The headache of deciding if MovementEntity should inherit from ShootingEntity or the opposite is gone.
As I continue to use this technique the questions accumulate. These are mostly trivial questions, design and architecture questions, and also some fundamental questions, e.g. what should the game object know, component dependencies, etc.
Hopefully some masters of this technique can come forth and explain their way of using it.