Class ComputerTerminalComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.computerterminal.ComputerTerminalComponent

public class ComputerTerminalComponent extends Component
Terminal trigger that listens for the player entering range and pressing interact. Also logs CAPTCHA results.
  • Constructor Details

    • ComputerTerminalComponent

      public ComputerTerminalComponent()
  • Method Details

    • setPlayerInRange

      public void setPlayerInRange(ColliderComponent collider)
      Called by collision code when the player enters or leaves range. Pass a non-null collider on begin contact, and null on end contact.
      Parameters:
      collider - the player's collider, or null when leaving
    • create

      public void create()
      Subscribes to CAPTCHA result events from the UI to log success/failure.
      Overrides:
      create in class Component