SuperSimpleGuy / dytenjin

An engine for making dynamic text-based java games.
GNU General Public License v3.0
1 stars 0 forks source link

Determine if IRandomEvent is really needed #10

Closed SuperSimpleGuy closed 11 years ago

SuperSimpleGuy commented 11 years ago

Title says it all. Right now, unsure why others would need to know probability of events happening. The implementing event can internally check to see if it triggers when the standard IEvent triggerEvent() method is called.

SuperSimpleGuy commented 11 years ago

Quite possibly have IEvent with triggerEvent() and ICalendarEvent with triggerEvent(CalendarDate d). Both would each need their respective Duration counterparts, or merge IDurationEvent's methods into both. Suddenly, half as many interfaces!

Edit: Thus, CoreEventHandler would need to refactor for both IEvent and ICalendarEvent, blind to randomness of events (which can maintain their own certainty)