public Board(IGameEvents events) { Directory.SetCurrentDirectory(@"..\..\"); this.board = new GameBoard(this); this.events = events; gameSound = new WindowsMediaPlayer(); gameSound.settings.setMode("Loop", true); events.GameInit(this); }
public Board() { Directory.SetCurrentDirectory(@"..\..\"); this.events = new GameEvents(); this.board = new GameBoard(this); this.timer = new Timer(); this.timer.Tick += GameTick; gameSound = new WindowsMediaPlayer(); gameSound.settings.setMode("Loop", true); events.GameInit(this); }
public Board(int xSize, int ySize) { Directory.SetCurrentDirectory(@"..\..\"); this.events = new GameEvents(); this.board = new GameBoard(this); this.XSize = xSize; this.YSize = ySize; this.timer = board.GetTimer(); gameSound = new WindowsMediaPlayer(); gameSound.settings.setMode("Loop", true); events.GameInit(this); }