Mercurial > mamba
diff mamba/engine.py @ 555:c014f5023cd2
Test run replays
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 22 Sep 2011 17:32:38 +0200 |
parents | 165fcc747951 |
children | 4c30776673c6 |
line wrap: on
line diff
--- a/mamba/engine.py Fri Sep 23 22:17:46 2011 +0200 +++ b/mamba/engine.py Thu Sep 22 17:32:38 2011 +0200 @@ -129,6 +129,15 @@ super(FlipArrowsEvent, cls).post() +class ReplayEvent(UserEvent): + + TYPE = "REPLAY_EVENT" + + @classmethod + def post(cls, run, replay_pos): + super(ReplayEvent, cls).post(run=run, replay_pos=replay_pos) + + class HabitatSetupEvent(UserEvent): TYPE = "SETUP_HABITAT"