Esempio n. 1
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            BackColor            = Color.Black;
            timerWorker.Enabled  = true;
            timerWorker.Interval = 100;
            AddressTable.SetTable();

            Restart();
        }
Esempio n. 2
0
        public void Initialise()
        {
            PlayerAmount = 8;
            Players      = new Player[PlayerAmount];
            CPlayers     = new ComPlayer[PlayerAmount];
            for (int i = 0; i < PlayerAmount; i++)
            {
                Players[i]  = new Player(GameProcess, i);
                CPlayers[i] = new ComPlayer(GameProcess, i);
            }
            AddressTable.FillPointers(GameProcess);

            Chars = new Character[24];
            for (int i = 0; i < Chars.Length; i++)
            {
                Chars[i]         = new Character();
                Chars[i].Address = AddressTable.DataFiles[i];
            }
            SetCharList();
        }