Package me.nabdev.pathfinding.modifiers
Class ActiveMyAllianceModifier
java.lang.Object
me.nabdev.pathfinding.modifiers.ObstacleModifier
me.nabdev.pathfinding.modifiers.ActiveMyAllianceModifier
A modifier that keeps the obstacle active if it is the same alliance as the
robot
-
Nested Class Summary
Nested classes/interfaces inherited from class me.nabdev.pathfinding.modifiers.ObstacleModifier
ObstacleModifier.MatchPhase, ObstacleModifier.ObstacleModifierTypes
-
Constructor Summary
ConstructorsConstructorDescriptionActiveMyAllianceModifier
(ModifierCollection collection) Creates a new ActiveMyAllianceModifier -
Method Summary
Methods inherited from class me.nabdev.pathfinding.modifiers.ObstacleModifier
getCurrentPhase, getModifier
-
Constructor Details
-
ActiveMyAllianceModifier
Creates a new ActiveMyAllianceModifier- Parameters:
collection
- The modifier collection associated with this modifier
-
-
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
-