Example #1
0
        public GameOptions()
        {
            gameVersion = GameVersion.Version109;
            gameMode    = GameMode.Commercial;
            missionPack = MissionPack.Doom2;

            players = new Player[Player.MaxPlayerCount];
            for (var i = 0; i < Player.MaxPlayerCount; i++)
            {
                players[i] = new Player(i);
            }
            players[0].InGame = true;
            consolePlayer     = 0;

            episode = 1;
            map     = 1;
            skill   = GameSkill.Medium;

            demoPlayback = false;
            netGame      = false;

            deathmatch      = 0;
            fastMonsters    = false;
            respawnMonsters = false;
            noMonsters      = false;

            intermissionInfo = new IntermissionInfo();

            random = new DoomRandom();

            video     = NullVideo.GetInstance();
            sound     = NullSound.GetInstance();
            music     = NullMusic.GetInstance();
            userInput = NullUserInput.GetInstance();
        }
Example #2
0
        public Intermission(GameOptions options, IntermissionInfo info)
        {
            this.options = options;
            this.info    = info;

            scores = info.Players;

            killCount   = new int[Player.MaxPlayerCount];
            itemCount   = new int[Player.MaxPlayerCount];
            secretCount = new int[Player.MaxPlayerCount];
            fragCount   = new int[Player.MaxPlayerCount];

            dmFragCount = new int[Player.MaxPlayerCount][];
            for (var i = 0; i < Player.MaxPlayerCount; i++)
            {
                dmFragCount[i] = new int[Player.MaxPlayerCount];
            }
            dmTotalCount = new int[Player.MaxPlayerCount];

            if (options.Deathmatch != 0)
            {
                InitDeathmatchStats();
            }
            else if (options.NetGame)
            {
                InitNetGameStats();
            }
            else
            {
                InitSinglePLayerStats();
            }

            completed = false;
        }
Example #3
0
        public Intermission(Player[] players, IntermissionInfo wbs, GameOptions options)
        {
            this.players = players;
            this.wbs     = wbs;
            this.options = options;

            plrs = wbs.Plyr;

            cnt_kills  = new int[Player.MaxPlayerCount];
            cnt_items  = new int[Player.MaxPlayerCount];
            cnt_secret = new int[Player.MaxPlayerCount];

            InitStats();
        }