예제 #1
0
 public MapInstance(MapIsland context, string name)
 {
     _name    = name;
     _context = context;
     if (_context != null)
     {
         _rand = _context.ActualWorld.Random;
     }
     else
     {
         _rand = new Random();
     }
 }
예제 #2
0
 public bool ChangeActualIsland(MapIsland I, bool militia)
 {
     if (((MapIsland)_actualPosition).IslandName != I.IslandName)
     {
         for (int i = 0; i < I.ListLink.Count; i++)
         {
             if (((MapIsland)_actualPosition).IslandName == I.ListLink[i].IslandName)
             {
                 if (militia == false)
                 {
                     //Provok event when a change is done
                 }
                 _actualPosition = I;
                 TavernCharactersChange();
                 return(true);
             }
         }
     }
     return(false);
 }
예제 #3
0
 public MapCity(MapIsland context, string name)
 {
     _name    = name;
     _context = context;
 }