private SoundManager SndGame; //Class to Manager the Soundseffects #endregion #region Constructor public Game_Logic(int NumMaxPLayer) { int x; SndGame = new SoundManager(); /**********Creation Logic Game ********/ GameState = Game_States.INTRO; LstState = Game_States.INTRO; ScrennState = Game_SCR.RUNNING; CurrentPlayer = 0; MaxPlayers = NumMaxPLayer; Players = new Game_Player[MaxPlayers]; for (x = 0; x < MaxPlayers; x++) { Players[x] = new Game_Player(); } //Only the Player 1 Is connected (use the KeyBoard) AddPlayer("Player 1", 1); //Defino Personaje Por Player Players[0].PlySelect = 1; //Players[1].PlySelect = 4; //Players[2].PlySelect = 5; //Players[3].PlySelect = 8; Players[1].PlySelect = 2; Players[2].PlySelect = 3; Players[3].PlySelect = 4; /*** History ****/ HistoryIni = new string[8]; HistoryEnd = new string[8]; CreateHistory(); //Weapons Weapons = new Game_Weapon[MaxPlayers]; MaxWeapons = NumMaxPLayer; //pause PauseGame = false; //Initial Level Level = 0; LevelH = 10; //Mode Multiplayer MultiMode = Play_MultiMode.DEATHMATCH; //Mode of Game Mode = Game_Mode.MULTI_PLY; //Status Pause_Status = Pausa_Status.RETURN; }
public Game_Logic(int NumMaxPLayer) { int x; SndGame = new SoundManager(); /**********Creation Logic Game ********/ GameState = Game_States.INTRO; LstState = Game_States.INTRO; ScrennState = Game_SCR.RUNNING; CurrentPlayer = 0; MaxPlayers = NumMaxPLayer; Players = new Game_Player[MaxPlayers]; for (x = 0; x < MaxPlayers; x++) { Players[x] = new Game_Player(); } //Only the Player 1 Is connected (use the KeyBoard) AddPlayer("Player 1", 1); //Defino Personaje Por Player Players[0].PlySelect = 1; //Players[1].PlySelect = 4; //Players[2].PlySelect = 5; //Players[3].PlySelect = 8; Players[1].PlySelect = 2; Players[2].PlySelect = 3; Players[3].PlySelect = 4; /*** History ****/ HistoryIni = new string[8]; HistoryEnd = new string[8]; CreateHistory(); //Weapons Weapons = new Game_Weapon[MaxPlayers]; MaxWeapons = NumMaxPLayer; //pause PauseGame = false; //Initial Level Level = 0; LevelH = 10; //Mode Multiplayer MultiMode = Play_MultiMode.DEATHMATCH; //Mode of Game Mode = Game_Mode.MULTI_PLY; //Status Pause_Status = Pausa_Status.RETURN; }