Class CrescendoSpeaker
java.lang.Object
org.ironmaple.simulation.Goal
org.ironmaple.simulation.seasonspecific.crescendo2024.CrescendoSpeaker
- All Implemented Interfaces:
SimulatedArena.Simulatable
Simulates a SPEAKERs on the field.
This class simulates the SPEAKERs on the field where NOTESs can be scored. It
may be amplified by using the Arena2024Crescendo.activateAmp(boolean) function on the host arena.
-
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
ConstructorsConstructorDescriptionCrescendoSpeaker(Arena2024Crescendo arena, boolean isBlue) Creates an Speaker 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
-
redSpeakerPose
-
blueSpeakerPose
-
crescendoArena
-
-
Constructor Details
-
CrescendoSpeaker
Creates an Speaker of the specified color.
- Parameters:
arena- The host arena of this speaker.isBlue- Wether this is the blue speaker 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
-