public bool LinksTo(MapSector sector) { if (sector == null) { return(false); } return(Sector1 == sector || Sector2 == sector); }
public Wormhole(StrategyGame game, MapSector s1, MapSector s2) { _game = game; Sector1 = s1; Sector2 = s2; End1 = new GameEntity(game, ".\\Art\\wormhole.png", 50, 50, s1.Id) { Name = s2.Name, TextBrush = Brushes.CornflowerBlue }; End2 = new GameEntity(game, ".\\Art\\wormhole.png", 50, 50, s2.Id) { Name = s1.Name, TextBrush = Brushes.CornflowerBlue }; }