Class CrescendoAmp
java.lang.Object
org.ironmaple.simulation.Goal
org.ironmaple.simulation.seasonspecific.crescendo2024.CrescendoAmp
- All Implemented Interfaces:
SimulatedArena.Simulatable
Simulates a AMPS on the field.
This class simulates the AMP on the field where NOTESs can be scored.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ironmaple.simulation.Goal
Goal.PositionChecker, Goal.RotationChecker -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Translation3dprotected final Arena2024Crescendoprotected static final Translation3dFields inherited from class org.ironmaple.simulation.Goal
allowGrounded, arena, elevation, gamePieceCount, gamePieceType, height, isBlue, max, position, positionChecker, rotationChecker, velocityValidator, xyBox -
Constructor Summary
ConstructorsConstructorDescriptionCrescendoAmp(Arena2024Crescendo arena, boolean isBlue) Creates an Amp of the specified color. -
Method Summary
Methods inherited from class org.ironmaple.simulation.Goal
absoluteAngle, anyRotation, box, checkCollision, checkGrounded, checkValidity, clear, flipRotation, getGamePieceCount, isFull, pitchOnly, setNeededAngle, setNeededAngle, simulationSubTick, withCustomCollisionPredicate, withCustomPositionChecker, withCustomRotationChecker, withCustomRotationValidator, withCustomVelocityValidator, withRotationTolerance
-
Field Details
-
blueAmpPose
-
redAmpPose
-
crescendoArena
-
-
Constructor Details
-
CrescendoAmp
Creates an Amp of the specified color.
- Parameters:
arena- The host arena of this amp.isBlue- Wether this is the blue amp or the red one.
-
-
Method Details
-
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
-