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

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

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