COMPOSER: Implement V1 random events.

This commit is contained in:
Alyssa Milburn 2011-11-05 16:00:02 +01:00
parent 81785c6090
commit d6bfbdd60e
4 changed files with 39 additions and 1 deletions

View file

@ -101,6 +101,11 @@ struct KeyboardHandler {
uint16 scriptId;
};
struct RandomEvent {
uint16 weight;
uint16 scriptId;
};
struct Library {
uint _id;
Archive *_archive;
@ -182,6 +187,8 @@ private:
Common::List<Animation *> _anims;
Common::List<Pipe *> _pipes;
Common::HashMap<uint16, Common::Array<RandomEvent> > _randomEvents;
void onMouseDown(const Common::Point &pos);
void onMouseMove(const Common::Point &pos);
void onKeyDown(uint16 keyCode);