void IEventSubscriber.eventOccurred(IGameEvent occurringEvent) { if (occurringEvent.getEventType() == "TIMEEVENT") { myAnimationMaestro.fadeInCharacters(myDialogueManager.getAllCurrentLocalPresentConversationPartners()); reactivateButtonFadingInIfCharactersPresent(timeAdvanceButton, 0.6f); } else if (occurringEvent.getEventType() == "LOCATIONEVENT") { myAnimationMaestro.fadeInCharacters(myDialogueManager.getAllCurrentLocalPresentConversationPartners()); reactivateButtonFadingInIfCharactersPresent(toggleInteriorSceneButton, 0.6f); } else if (occurringEvent.getEventType() == "SEQUENCEENDEVENT") { reactivateButtonFadingInIfCharactersPresent(timeAdvanceButton, 0.0f); reactivateButtonFadingInIfCharactersPresent(toggleInteriorSceneButton, 0.0f); } else if (occurringEvent.getEventType() == "DATESTARTEVENT") { myAnimationMaestro.fadeInCharacters(new List <Character>() { myRelationshipCounselor.getDatePartner(mySceneCatalogue.getCurrentLocation(), myTimelord.getCurrentTimestep()) }); } else if (occurringEvent.getEventType() == "DATEACTIONEVENT") { mySceneCatalogue.getCurrentLocation().setRandomDateAction(); } }
void IEventSubscriber.eventOccurred(IGameEvent occurringEvent) { if (occurringEvent.getEventType() == "TIMEEVENT") { this.setAbsentCharactersToPresent(); } selectedPartner = -1; }
public void eventOccurred(IGameEvent occurringEvent) { //testResultsText.text += "Event: " + occurringEvent.getEventType() + " ok.\n"; if (occurringEvent.getEventType() == "LOCATIONEVENT") { testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n"; } else if (occurringEvent.getEventType() == "TIMEEVENT") { testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n"; } else if (occurringEvent.getEventType() == "DATESTARTEVENT") { testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n"; } else if (occurringEvent.getEventType() == "DATEACTIONEVENT") { testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n"; } }