/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { List <Player> tempPlayers = new List <Player>(); tempPlayers.Add(new Player { Index = 0, IsDead = false, IsHuman = true, Name = "player1", Points = 0 }); tempPlayers.Add(new Player { Index = 1, IsDead = true, IsHuman = true, Name = "player2", Points = 0 }); tempPlayers.Add(new Player { Index = 2, IsDead = false, IsHuman = true, Name = "player3", Points = 0 }); StateGlobals.Players = tempPlayers; PhaseHandler.CurrentPlayer = StateGlobals.Players[0]; // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); gameboard = ServiceContainer.Container.Resolve <IGameboard>(); spellboard = ServiceContainer.Container.Resolve <ISpellboard>(); gameboard.GenerateEmptyGameboard(); spellboard.GenerateEmptySpellboard(); gameEventHandler = ServiceContainer.Container.Resolve <IGameEventHandler>(); infoStringHandler = ServiceContainer.Container.Resolve <IInfoStringHandler>(); SpellsGenerator sg = new SpellsGenerator(); sg.GenerateSpells(); }
public GameboardHandler(IGameboard gameboard, ISpellboard spellboard) { this.gameboard = gameboard; this.spellboard = spellboard; }