Пример #1
0
        public Action(Constants.ActionType type, bool primary)
        {
            this.Type = type;
            this.Primary = primary;

            conditions = new List<Condition>();
        }
Пример #2
0
        public Action(Constants.ActionType type)
        {
            this.Type = type;
            this.Primary = false;

            conditions = new List<Condition>();
        }
Пример #3
0
 public void PlaySpawnSound(Vector2 spawnerPosition, Constants.EnemyType enemyType)
 {
     switch (enemyType)
     {
         case Constants.EnemyType.BlackMetalBadger:
             PlaySoundFromPosition(spawnerPosition, badgerSpawn);
             break;
     }
 }
Пример #4
0
 public void PlayDeathSound(Vector2 position, Constants.EnemyType enemyType)
 {
     switch (enemyType)
     {
         case Constants.EnemyType.BlackMetalBadger:
             PlaySoundFromPosition(position, badgerDeath);
             break;
     }
 }
Пример #5
0
 private void ChangeDirection(Constants.DirectionX newDirection)
 {
     subject.directionX = newDirection;
 }
Пример #6
0
 public void CalculateBoundingBoxOffsets(Point boundingBoxSize, Constants.DirectionX animationDirection)
 {
     calculateBoundingBoxOffsets = true;
     this.boundingBoxSize = boundingBoxSize;
     this.animationDirection = animationDirection;
 }