[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-devel] v0.4 event system
From: |
Kai Sterker |
Subject: |
[Adonthell-devel] v0.4 event system |
Date: |
Fri, 9 Apr 2004 14:01:47 +0200 |
I've just committed the first code for the 0.4 event system. It's not
finished yet, but at least it should compile. Couldn't test under Linux
yet, though.
Here is a list of changes from v0.3:
* renamed files/classes/methods to match input events
handler -> manager
list -> factory
* splitted event class into event and listener, again to match input
events.
* listener uses a python method/function as callback, not a whole
script.
scripts are loaded only once, even if several listeners use same
callback.
* loading/saving uses new diskio class
* events can better keep track of being paused / resumed
Here is what still needs to be done:
* add mapevents, mapevent_manager
* implement listener::raise_event, so the callback is actually executed
* testing
I've also improved the diskio stuff and made a few other changes here
and there. The diskiotest program has been extended to demonstrate the
functionality of flat/diskio.
Enjoy! More will come in a few weeks!
Kai
- [Adonthell-devel] v0.4 event system,
Kai Sterker <=