public void Copy(GameOptions tmp)
 {
     this._unit     = tmp._unit;
     this._sizeGate = tmp._sizeGate;
     this._subSpeed = tmp._subSpeed;
     this._subAccel = tmp._subAccel;
     this._maxGates = tmp._maxGates;
     this._maxLives = tmp._maxLives;
     this.Gates     = tmp.Gates;
 }
Beispiel #2
0
        public Gates Clone()
        {
            Gates temp = new Gates();

            temp.Data = new double[this.Data.Length];
            for (int i = 0; i < this.Data.Length; i++)
            {
                temp.Data[i] = this.Data[i];
            }
            return(temp);
        }
        public GameOptions()
        {
            this._unit     = 15;
            this._sizeGate = 2;
            this._subSpeed = 50;
            this._subAccel = 50;
            this._maxGates = 5;
            this._maxLives = 4;
            this.Gates     = new Gates();

            this._timeGate = (800 - 20 - 48) / _subSpeed;
        }