Example #1
0
 public MapInstance(MapIsland context, string name)
 {
     _name    = name;
     _context = context;
     if (_context != null)
     {
         _rand = _context.ActualWorld.Random;
     }
     else
     {
         _rand = new Random();
     }
 }
Example #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);
 }
Example #3
0
 public MapCity(MapIsland context, string name)
 {
     _name    = name;
     _context = context;
 }