Class ComputerTerminalFactory

java.lang.Object
com.csse3200.game.entities.factories.ComputerTerminalFactory

public final class ComputerTerminalFactory extends Object
Factory for creating computer terminal entities with visuals, physics, interaction tooltip, and terminal behaviour pre-wired.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Entity
    Builds a terminal entity that: Renders an animated monitor from an atlas Has a static physics body with a sensor collider Shows a tooltip prompting the player to press E Emits interaction events via ComputerTerminalComponent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createTerminal

      public static Entity createTerminal()
      Builds a terminal entity that: Renders an animated monitor from an atlas Has a static physics body with a sensor collider Shows a tooltip prompting the player to press E Emits interaction events via ComputerTerminalComponent
      Returns:
      a fully configured terminal entity