Example #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);
        }
Example #2
0
 public void Continue()
 {
     for (int nowTile = 0; nowTile < tilesCoords.Count; nowTile++)
     {
         ReadLoadTile.ReadTileById(Map.GetTileByCoords(tilesCoords[nowTile])).Walk(this, progress);
         hikePlacement = tilesCoords[nowTile];
         Downtime();
     }
     quest.Play(this);
     if (!endOfTheHike)
     {
         PlayerInteractions.ContinueHike(this).Go();
     }
 }