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