Example #1
0
        public NetGame(NetPlay _netPlay)
        {
            netPlay = _netPlay;

            writer = new PacketWriter();
            reader = new PacketReader();
        }
Example #2
0
        public NetGame(NetPlay _netPlay)
        {
            netPlay = _netPlay;

            writer = new PacketWriter();
            reader = new PacketReader();
        }
Example #3
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// 
        /// We'll instantiate our stuff, load character definitions.
        /// 
        /// 
        /// </summary>
        protected override void Initialize()
        {
            Rand.random = new Random();

            map = new Map();

            netPlay = new NetPlay();

            screenSize.X = 800f;
            screenSize.Y = 600f;

            charDef[(int)CharacterDefinitions.Guy] =
                new CharDef("chars/guy", CharacterDefinitions.Guy);
            charDef[(int)CharacterDefinitions.Zombie] =
                new CharDef("chars/zombie", CharacterDefinitions.Zombie);
            charDef[(int)CharacterDefinitions.Wraith] =
                new CharDef("chars/wraith", CharacterDefinitions.Wraith);
            charDef[(int)CharacterDefinitions.Carlos] =
                new CharDef("chars/carlos", CharacterDefinitions.Carlos);

            Sound.Initialize();
            Music.Initialize();

            QuakeManager.Init();

            base.Initialize();

            store = new Store();
            settings = new Settings();
            store.GetDevice();
        }
Example #4
0
 public NetConnect(NetPlay _netPlay)
 {
     netPlay = _netPlay;
 }
Example #5
0
 public NetConnect(NetPlay _netPlay)
 {
     netPlay = _netPlay;
 }