Package me.nabdev.pathfinding.modifiers
Class ZoneModifier
java.lang.Object
me.nabdev.pathfinding.modifiers.ObstacleModifier
me.nabdev.pathfinding.modifiers.ZoneModifier
Marks the obstacle as a zone. This means it will not invalidate obstacle
points and start points will not snap outside of it.
-
Nested Class Summary
Nested classes/interfaces inherited from class me.nabdev.pathfinding.modifiers.ObstacleModifier
ObstacleModifier.MatchPhase, ObstacleModifier.ObstacleModifierTypes
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.nabdev.pathfinding.modifiers.ObstacleModifier
getCurrentPhase, getModifier
-
Constructor Details
-
ZoneModifier
public ZoneModifier()
-
-
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 classObstacleModifier
- 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 classObstacleModifier
- 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 classObstacleModifier
- Returns:
- the modifier type of this modifier
-