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

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

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