Esempio n. 1
0
    public List <Character> getAllCurrentLocalPresentConversationPartners()
    {
        List <Character> toReturn = new List <Character>();
        int currentTimeOfDay      = myTimeLord.getCurrentModulusTimestep();

        foreach (Character character in this.allCharacters)
        {
            if (this.isCharacterInTimeOfDay(character, currentTimeOfDay) && this.isCharacterPresentAtCurrentLocation(character, currentTimeOfDay) && character.isPresent)
            {
                toReturn.Add(character);
            }
        }
        charactersPresent = toReturn;
        return(toReturn);
    }
 private void checkStartDate()
 {
     if (myGameState.currentGameState == GameState.gameStates.PROWL)
     {
         if (mySceneCatalogue.getIsInInteriorScene())
         {
             if (hasDateAtPresentTimeInPresentLocationAndDateNotOver())
             {
                 isAtDate = true;
                 myAudioConductor.startMusic(mySceneCatalogue.getCurrentSceneName(), myTimelord.getCurrentModulusTimestep());
                 myGameState.currentGameState = GameState.gameStates.DATEINTRO;
                 myEventQueue.queueEvent(new EventDateStart());
                 DateableCharacter datePartner = this.getDatePartner(mySceneCatalogue.getCurrentLocation(), myTimelord.getCurrentTimestep());
                 datePartner.dateCount++;
             }
         }
     }
 }
Esempio n. 3
0
 public bool checkTutorialConditionsMet()
 {
     return(tutorialComplete == false && mySceneCatalogue.getIsInInteriorScene() == true && mySceneCatalogue.getCurrentSceneName() == "City" && myTimeLord.getCurrentModulusTimestep() == 0);
 }