예제 #1
0
파일: Game1.cs 프로젝트: jxl31/GameOfLife
        //when the player wants the random board
        //changes gamestate to RANDOM and making other boards null
        public void selectedRandom()
        {
            randomBoard = new RandomBoard();
            gamestate = GAMESTATE.RANDOM;

            menuScreen = null;
            board = null;
            coolBoard = null;
        }
예제 #2
0
파일: Game1.cs 프로젝트: jxl31/GameOfLife
        //when the player wants the cool board
        //changes gamestate to COOL and making other boards null
        public void selectedCool()
        {
            coolBoard = new CoolBoard();
            gamestate = GAMESTATE.COOL;

            menuScreen = null;
            board = null;
            randomBoard = null;
        }
예제 #3
0
파일: Game1.cs 프로젝트: jxl31/GameOfLife
 //when player wants to exit the game
 //makes everything null and changes gamestate to QUIT
 public void selectedQuit()
 {
     gamestate = GAMESTATE.QUIT;
     menuScreen = null;
     randomBoard = null;
     board = null;
     coolBoard = null;
 }
예제 #4
0
파일: Game1.cs 프로젝트: jxl31/GameOfLife
        //when the player wants the clear board
        //changes gamestate to CLEAR and making other boards null
        public void selectedBoard()
        {
            board = new Board();
            gamestate = GAMESTATE.CLEAR;

            menuScreen = null;
            randomBoard = null;
            coolBoard = null;
        }