Ejemplo n.º 1
0
        public int Go()
        {
            int unrealProgres;

            while (tilesCoords.Count != 0)
            {
                hikePlacement = tilesCoords[0];
                unrealProgres = ReadLoadTile.ReadTileById(Map.GetTileByCoords(hikePlacement)).Walk(this, progress);
                if (unrealProgres != -1)
                {
                    progress = unrealProgres;
                    ReadLoadHike.SaveHike(this);
                    return(0);
                }
                progress = 0;
                tilesCoords.RemoveAt(0);
                Downtime();
            }
            quest.Play(this);
            if (!endOfTheHike)
            {
                PlayerInteractions.ContinueHike(this).Go();
            }
            return(1);
        }
Ejemplo n.º 2
0
 public void play(Hike nowHike)
 {
     if (PlayerInteractions.ChoosePassiveUse(passiveUseName, nowHike) >= requiredLevel)
     {
         Console.WriteLine(gDescription);
         nextEventt.Play(nowHike);
     }
     else
     {
         Console.WriteLine(bDescription);
     }
 }
Ejemplo n.º 3
0
        public void play(Hike nowHike)
        {
            Character subject;

            subject = PlayerInteractions.ChooseCharacter(nowHike);
            if (Functions.TestCharacter(attribute, talent, difficulty, subject))
            {
                nextGoodEventt.Play(nowHike);
            }
            else
            {
                nextBadEventt.Play(nowHike);
            }
        }
Ejemplo n.º 4
0
 public void play(Hike nowHike)
 {
     nextEventt.Play(nowHike);
 }