public BotManager(World world, CameraManager cameraManager, BattleSystem battleSystem, string[] playerNames, Point windowCenter) { this.World = world; this.CameraManager = cameraManager; this.BattleSystem = battleSystem; this.PlayerNames = playerNames; this.WindowCenter = windowCenter; Reset(); }
public GameState(Application application, BattleSystem battleSystem, string playerName) : base(application, "test_scene") { this.BattleSystem = battleSystem; BattleSystem.World = World; BattleSystem.BattleEnded += OnBattleEnded; World.BattleSystem = BattleSystem; BattleSystem.Start(); Player = new Player(World, CameraManager, Application.WindowCenter, true); Player.Character = BattleSystem.GetCharacterByName(playerName); CameraManager.ActiveCamera = Player.Camera; BotManager = new BotManager(World, CameraManager, BattleSystem, new string[] { playerName }, Application.WindowCenter); Crosshair = new Crosshair(Application.Resolution, Player.Camera) { Character = Player.Character }; UserInterface.Add(Crosshair); Notification = new Notification(Application.Resolution); UserInterface.Add(Notification); CursorVisible = false; }