Mirai-Team / mirai-project

C++ library for games making purposes.
Other
3 stars 0 forks source link

An "Updatable" base class to handle entities to update by using some "UpdateModule". #13

Closed CBenoit closed 9 years ago

CBenoit commented 9 years ago

For instance, I want to create monsters in my game. All monsters could be updated by a "monsters update module" by calling a single method. And every single monster (modelized by a class called "Monster" which is a "Updatable" child class) is automatically added to the "monster update module" when created.

Lomadriel commented 9 years ago

It's done in Updatable2 branch. I have to add documentation and we can pull.

Lomadriel commented 9 years ago

Documentation add. Merge in https://github.com/Mirai-Team/mirai-project/pull/22

CBenoit commented 9 years ago

The current UpdateModule class doesn't allow to update different group of Updatable objects. For instance, an update module only for characters and an update module only for items. Or something like that.