public void completeEvent(TrackingEvent eventToTrack) { ui.addPopup(eventToTrack.finishedString); eventToTrack.finished = true; eventToTrack.active = false; foreach (int i in eventToTrack.triggerEvents) { foreach (TrackingEvent eve in eventsToTrack) { if (i == eve.id) { eve.active = true; Console.WriteLine(eve.unfinishedString); } } } eventsToTrack.Remove(eventToTrack); }
public void addEvent(TrackingEvent newEvent) { eventManager.addEvent(newEvent); }
public void addEvent(TrackingEvent eventToTrack) { eventsToTrack.Add(eventToTrack); }