public MainScreen(ScreenController controller, Renderer renderer, SoundController soundController, PlayerInfo playerInfo) : base(controller, renderer, soundController, playerInfo) { }
public void init(Renderer renderer, PlayerInfo playerInfo, StorageManager storageManager, SoundController soundController, Rectangle screenSize) { //will eventually get this from save data this.playerInfo = playerInfo; this.storageManager = storageManager; ScreenSize = screenSize; this.renderer = renderer; this.soundController = soundController; screens = new Dictionary <ScreenState, Screen>(); //main screen screens.Add(ScreenState.MainScreenState, new MainScreen(this, this.renderer, this.soundController, this.playerInfo)); //map screen screens.Add(ScreenState.MapScreenState, new MapScreen(this, this.renderer, this.soundController, this.playerInfo)); //army screen screens.Add(ScreenState.ArmyScreenState, new ArmyScreen(this, this.renderer, this.soundController, this.playerInfo)); //battle screen screens.Add(ScreenState.BattleScreenState, new BattleScreen(this, this.renderer, this.soundController, this.playerInfo)); //setting screen screens.Add(ScreenState.SettingScreenState, new SettingScreen(this, this.renderer, this.soundController, this.playerInfo, this.storageManager)); goToScreen(ScreenState.MainScreenState); }