Class ReefscapeBargeSimulation

java.lang.Object
org.ironmaple.simulation.Goal
org.ironmaple.simulation.seasonspecific.reefscape2025.ReefscapeBargeSimulation
All Implemented Interfaces:
SimulatedArena.Simulatable

public class ReefscapeBargeSimulation extends Goal

Simulates a BARGEs on the field.

This class simulates a BARGEs on the field where ALGAE can be scored.

  • Field Details

    • redBargePose

      protected static final Translation3d redBargePose
    • blueBargePose

      protected static final Translation3d blueBargePose
  • Constructor Details

    • ReefscapeBargeSimulation

      public ReefscapeBargeSimulation(Arena2025Reefscape arena, boolean isBlue)

      Creates an barge of the specified color.

      Parameters:
      arena - The host arena of this barge.
      isBlue - Wether this is the blue barge or the red one.
  • Method Details

    • draw

      public void draw(List<Pose3d> algaePosesToDisplay)
      Description copied from class: Goal

      Displays Game Pieces to AdvantageScope if Applicable

      Specified by:
      draw in class Goal
      Parameters:
      algaePosesToDisplay - a list of Pose3d objects used to visualize the positions of the game pieces on AdvantageScope
    • addPoints

      protected void addPoints()
      Description copied from class: Goal

      Adds 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.

      Specified by:
      addPoints in class Goal