Class AlwaysActiveModifier

java.lang.Object
me.nabdev.pathfinding.modifiers.ObstacleModifier
me.nabdev.pathfinding.modifiers.AlwaysActiveModifier

public class AlwaysActiveModifier extends ObstacleModifier
A modifier that keeps the obstacle active at all times
  • Constructor Details

    • AlwaysActiveModifier

      public AlwaysActiveModifier()
  • Method Details

    • isActive

      public boolean isActive()
      Description copied from class: ObstacleModifier
      Whether or not the obstacle is active at this time.
      Specified by:
      isActive in class ObstacleModifier
      Returns:
      true if the obstacle is currently active, false if not
    • requiredForActive

      public boolean requiredForActive()
      Description copied from class: ObstacleModifier
      Whether or not this modifier MUST be active to have the obstacle active. If true, will use the AND operator with other modifiers, if false, uses OR.
      Specified by:
      requiredForActive in class ObstacleModifier
      Returns:
      True if required to keep the obstacle active, false if not required.
    • getType

      Description copied from class: ObstacleModifier
      Get the modifier type of this modifier
      Specified by:
      getType in class ObstacleModifier
      Returns:
      the modifier type of this modifier