Esempio n. 1
0
        // ReSharper restore NotAccessedField.Local

        public Elephant(IAnimalStatusTracker statusTracker) : base(statusTracker)
        {
            _rightTusk      = new byte[0x14000];
            _leftTusk       = new byte[0x14000];
            _leftFrontFoot  = new byte[0x14000];
            _leftBackFoot   = new byte[0x14000];
            _rightFrontFoot = new byte[0x14000];
            _rightBackFoot  = new byte[0x14000];
        }
Esempio n. 2
0
 // ReSharper restore NotAccessedField.Local
 public Elephant(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
     _rightTusk = new byte[0x14000];
     _leftTusk = new byte[0x14000];
     _leftFrontFoot=  new byte[0x14000];
     _leftBackFoot = new byte[0x14000];
     _rightFrontFoot = new byte[0x14000];
     _rightBackFoot = new byte[0x14000];
 }
Esempio n. 3
0
        // ReSharper restore NotAccessedField.Local

        public Elephant(IAnimalStatusTracker statusTracker) : base(statusTracker)
        {
            try
            {
                _rightTusk      = new byte[0x14000];
                _leftTusk       = new byte[0x1400];
                _leftFrontFoot  = new byte[0x14000];
                _leftBackFoot   = new byte[0x14000];
                _rightFrontFoot = new byte[0x14000];
                _rightBackFoot  = new byte[0x14000];
            }
            catch (OutOfMemoryException)
            {
                Logger.LogYellow("Failed to create an elephant, not enough room for such giant");
                Kill();
            }
        }
Esempio n. 4
0
 public Animal(IAnimalStatusTracker statusTracker)
 {
     _id            = AnimalIdGenerator.GetNewId();
     _statusTracker = statusTracker;
 }
Esempio n. 5
0
 public Snake(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Esempio n. 6
0
 public Rat(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Esempio n. 7
0
 public Elephant(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Esempio n. 8
0
 public Snake(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
 }
Esempio n. 9
0
 public Dog(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Esempio n. 10
0
 public Rat(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
 }
Esempio n. 11
0
 public Animal(IAnimalStatusTracker statusTracker)
 {
     _id = AnimalIdGenerator.GetNewId();
     _statusTracker = statusTracker;
 }
Esempio n. 12
0
 public Dog(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
 }