Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }