Class LevelConfig.E

java.lang.Object
com.csse3200.game.entities.configs.LevelConfig.E
Enclosing class:
LevelConfig

public static class LevelConfig.E extends Object
Configuration for an individual entity in a level.

Contains type, subtype, identifiers, relationships, positioning, sizing, movement attributes, and flags for centering.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Whether the entity should be centered along the x-axis.
    Whether the entity should be centered along the y-axis.
    Direction of directional entities (e.g., up, left, etc.) (if applicable).
    Delta movement along the x-axis (for moving entities).
    Delta movement along the y-axis (for moving entities).
    Extra metadata for custom behavior (if applicable)..
    int
    Used in ladders, determines the height of the ladder
    Optional identifier for this entity (if required).
    Initial collectable visibility
    Linked entity id, used for relationships like triggers (if applicable)..
    int
    Used in ladders, the offset of always visible ladder rungs
    Movement range of the entity (if applicable).
    Rotation angle of the entity in degrees (if applicable).
    float
    Safe x-coordinate for fallback or respawn.
    float
    Safe y-coordinate for fallback or respawn.
    Movement speed of the entity (if applicable).
    Subtype of the entity (e.g., ground, moving, potion) (if required).
    Scale factor along the x-axis (optional).
    Scale factor along the y-axis (optional).
    Target property (e.g., health, door) (if required)..
    Tooltip or description text for this entity (optional).
    Type of the entity (e.g., floor, platform, collectable) (required).
    int
    X-coordinate position of the entity.
    int
    Y-coordinate position of the entity.
  • Constructor Summary

    Constructors
    Constructor
    Description
    E()
     
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • type

      public String type
      Type of the entity (e.g., floor, platform, collectable) (required).
    • subtype

      public String subtype
      Subtype of the entity (e.g., ground, moving, potion) (if required).
    • id

      public String id
      Optional identifier for this entity (if required).
    • linked

      public String linked
      Linked entity id, used for relationships like triggers (if applicable)..
    • target

      public String target
      Target property (e.g., health, door) (if required)..
    • tooltip

      public String tooltip
      Tooltip or description text for this entity (optional).
    • extra

      public String extra
      Extra metadata for custom behavior (if applicable)..
    • direction

      public String direction
      Direction of directional entities (e.g., up, left, etc.) (if applicable).
    • x

      public int x
      X-coordinate position of the entity.
    • y

      public int y
      Y-coordinate position of the entity.
    • sx

      public Float sx
      Scale factor along the x-axis (optional).
    • sy

      public Float sy
      Scale factor along the y-axis (optional).
    • speed

      public Float speed
      Movement speed of the entity (if applicable).
    • range

      public Float range
      Movement range of the entity (if applicable).
    • rotation

      public Float rotation
      Rotation angle of the entity in degrees (if applicable).
    • dx

      public Float dx
      Delta movement along the x-axis (for moving entities).
    • dy

      public Float dy
      Delta movement along the y-axis (for moving entities).
    • safeX

      public float safeX
      Safe x-coordinate for fallback or respawn.
    • safeY

      public float safeY
      Safe y-coordinate for fallback or respawn.
    • centerX

      public Boolean centerX
      Whether the entity should be centered along the x-axis. (optional)
    • centerY

      public Boolean centerY
      Whether the entity should be centered along the y-axis. (optional)
    • isVisible

      public Boolean isVisible
      Initial collectable visibility
    • height

      public int height
      Used in ladders, determines the height of the ladder
    • offset

      public int offset
      Used in ladders, the offset of always visible ladder rungs
  • Constructor Details

    • E

      public E()