public Action(Constants.ActionType type, bool primary) { this.Type = type; this.Primary = primary; conditions = new List<Condition>(); }
public Action(Constants.ActionType type) { this.Type = type; this.Primary = false; conditions = new List<Condition>(); }
public void PlaySpawnSound(Vector2 spawnerPosition, Constants.EnemyType enemyType) { switch (enemyType) { case Constants.EnemyType.BlackMetalBadger: PlaySoundFromPosition(spawnerPosition, badgerSpawn); break; } }
public void PlayDeathSound(Vector2 position, Constants.EnemyType enemyType) { switch (enemyType) { case Constants.EnemyType.BlackMetalBadger: PlaySoundFromPosition(position, badgerDeath); break; } }
private void ChangeDirection(Constants.DirectionX newDirection) { subject.directionX = newDirection; }
public void CalculateBoundingBoxOffsets(Point boundingBoxSize, Constants.DirectionX animationDirection) { calculateBoundingBoxOffsets = true; this.boundingBoxSize = boundingBoxSize; this.animationDirection = animationDirection; }