majora2007 / CerebralAcademy

Design for Learning in Virtual Worlds class project.
0 stars 2 forks source link

Factories! #23

Closed majora2007 closed 11 years ago

majora2007 commented 11 years ago

Currently, firing off events takes quite a bit of code and most of it is packing parameters. In order to keep the code cleaner and simpler to adapt, the use of Event Factories is needed.

To do this, create an EventFactory which takes an optional amount of parameters (...) and packs them and fires the event.

majora2007 commented 11 years ago

Implemented in commit 595aa4b751cb0c07d54061bc0514538d0cc1fcfd