Example #1
0
        public Action(Constants.ActionType type, bool primary)
        {
            this.Type = type;
            this.Primary = primary;

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

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