Commanding Chaos for Coworking, Open Source and Creative Communities

Entity/Component Game Design That Works: The Artemis Framework | Piemaster.net

Wed, 07/24/2013 - 05:06 -- rprice

The Artemis framework inherits the concept of Entities representing bags of Components, but it does away with the OO concept of encapsulating behaviour within the components. Instead, it adopts a data-driven design involving the separation of the data and logic of each component. In essence, the Components serve as little more than bags of data. They have no update function, no internal logic, just getter and setter functions to expose their current values. The logic is instead encapsulated in the Systems that accompany the entities and components. A ‘System’ is simply an object that reads and updates the data in any relevant components. You could say it’s simply the update function of the relevant components refactored into its own object.