Beispiel #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];
        }
Beispiel #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];
 }
Beispiel #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();
            }
        }
Beispiel #4
0
 public Animal(IAnimalStatusTracker statusTracker)
 {
     _id            = AnimalIdGenerator.GetNewId();
     _statusTracker = statusTracker;
 }
Beispiel #5
0
 public Snake(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Beispiel #6
0
 public Rat(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Beispiel #7
0
 public Elephant(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Beispiel #8
0
 public Snake(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
 }
Beispiel #9
0
 public Dog(IAnimalStatusTracker statusTracker) : base(statusTracker)
 {
 }
Beispiel #10
0
 public Rat(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
 }
Beispiel #11
0
 public Animal(IAnimalStatusTracker statusTracker)
 {
     _id = AnimalIdGenerator.GetNewId();
     _statusTracker = statusTracker;
 }
Beispiel #12
0
 public Dog(IAnimalStatusTracker statusTracker)
     : base(statusTracker)
 {
 }