Package me.nabdev.pathfinding.modifiers
Enum Class ObstacleModifier.ObstacleModifierTypes
java.lang.Object
java.lang.Enum<ObstacleModifier.ObstacleModifierTypes>
me.nabdev.pathfinding.modifiers.ObstacleModifier.ObstacleModifierTypes
- All Implemented Interfaces:
Serializable
,Comparable<ObstacleModifier.ObstacleModifierTypes>
,Constable
- Enclosing class:
- ObstacleModifier
public static enum ObstacleModifier.ObstacleModifierTypes
extends Enum<ObstacleModifier.ObstacleModifierTypes>
All available obstacle modifiers
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionObstacle is active during autonomous (first 15 seconds)Obstacle is active during endgame (last 20 seconds)Obstacle is active if it is my alliance'sObstacle is active if it is the other alliance'sObstacle is active during teleopObstacle is always activeMarks the obstacle as the blue alliance's, does not affect if it is active unless ACTIVE_MY_ALLIANCE/ACTIVE_OTHER_ALLIANCE is also appliedMarks the obstacle as the red alliance's, does not affect if it is active unless ACTIVE_MY_ALLIANCE/ACTIVE_OTHER_ALLIANCE is also appliedMarks the obstacle as a zone. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS_ACTIVE
Obstacle is always active -
ACTIVE_ENDGAME
Obstacle is active during endgame (last 20 seconds) -
ACTIVE_AUTO
Obstacle is active during autonomous (first 15 seconds) -
ACTIVE_TELE
Obstacle is active during teleop -
ACTIVE_MY_ALLIANCE
Obstacle is active if it is my alliance's -
ACTIVE_OTHER_ALLIANCE
Obstacle is active if it is the other alliance's -
BLUE_ALLIANCE
Marks the obstacle as the blue alliance's, does not affect if it is active unless ACTIVE_MY_ALLIANCE/ACTIVE_OTHER_ALLIANCE is also applied -
RED_ALLIANCE
Marks the obstacle as the red alliance's, does not affect if it is active unless ACTIVE_MY_ALLIANCE/ACTIVE_OTHER_ALLIANCE is also applied -
ZONE_MODIFIER
Marks the obstacle as a zone. This means it will not invalidate obstacle points and start points will not snap outside of it.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-