mooege/mooege — pull request #311 by raistlinthewiz (2011-11-05 19:02:06+00:00)
Title: IUpdateable, Game.ticker fixes & basework for AI

IUpdateable:

* Introduced IUpdateable interface so that any object can request now ticker based updates.
* World.Update() will be now looping through players in and will get a list of actors in range for them that requires an update and do so. It'll be also preventing updating actors for a single tick.
* Scene will no more recieve updates.

Game-Ticker:

* Further improved game ticker. Fixes #282.
* Also fixed Update() intervals -- they'll be now consistent with Game.UpdateFrequency and will be sleeping game thread with a total of compensation value = this.UpdateFrequency - Game.Update().Elapsed.
* Introduced an advanced version of mdz's TickTimer which now can trigger Action callbacks on timeout. Also added a milisecond version (though it can only work for >100ms or so.)

AI:

* Added a very basic brain.cs -- thought it's disabled for time-being.

Misc:

* Moved AnimSet loader from Living.cs to Actor.cs.