Class RebuiltHub
java.lang.Object
org.ironmaple.simulation.Goal
org.ironmaple.simulation.seasonspecific.rebuilt2026.RebuiltHub
- All Implemented Interfaces:
SimulatedArena.Simulatable
Simulates a HUBs on the field.
This class simulates the HUBs on the field where FUELs can be scored. Whether it
is active can be determined by using Arena2026Rebuilt.isActive(boolean)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ironmaple.simulation.Goal
Goal.PositionChecker, Goal.RotationChecker -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Arena2026Rebuiltprotected static final Translation3dprotected static final Pose3d[]static final doubleprotected static final Translation3dstatic final Pose3d[]Fields inherited from class org.ironmaple.simulation.Goal
allowGrounded, elevation, gamePieceCount, gamePieceType, height, isBlue, max, position, positionChecker, rotationChecker, velocityValidator, xyBox -
Constructor Summary
ConstructorsConstructorDescriptionRebuiltHub(Arena2026Rebuilt arena, boolean isBlue) Creates an HUB of the specified color. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds Points When a Piece Has Been Successfully Scored in This Goalprotected booleancheckCollision(GamePiece GamePiece) Sets a Custom Position Checker for This GoalvoidDisplays Game Pieces to AdvantageScope if ApplicableMethods inherited from class org.ironmaple.simulation.Goal
absoluteAngle, anyRotation, box, checkGrounded, checkValidity, clear, flipRotation, getGamePieceCount, isFull, pitchOnly, setNeededAngle, setNeededAngle, simulationSubTick, withCustomCollisionPredicate, withCustomPositionChecker, withCustomRotationChecker, withCustomRotationValidator, withCustomVelocityValidator, withRotationTolerance
-
Field Details
-
blueHubPose
-
redHubPose
-
blueShootPoses
-
GoalRadius
public static final double GoalRadius- See Also:
-
redShootPoses
-
arena
-
-
Constructor Details
-
RebuiltHub
Creates an HUB of the specified color.
- Parameters:
arena- The host arena of this HUB.isBlue- Wether this is the blue HUB or the red one.
-
-
Method Details
-
checkCollision
Description copied from class:GoalSets a Custom Position Checker for This Goal
Replaces the default box collision with a custom shape check. This allows for cylindrical, spherical, or other complex collision zones beyond axis-aligned boxes.
- Overrides:
checkCollisionin classGoal- Returns:
- this Goal instance for method chaining
-
addPoints
protected void addPoints()Description copied from class:GoalAdds Points When a Piece Has Been Successfully Scored in This Goal
Since this function is the only trigger called when a piece is scored it may handle other small things outside of adding points.
-
draw
Description copied from class:GoalDisplays Game Pieces to AdvantageScope if Applicable
-