Class LevelConfig.E
java.lang.Object
com.csse3200.game.entities.configs.LevelConfig.E
- Enclosing class:
LevelConfig
Configuration for an individual entity in a level.
Contains type, subtype, identifiers, relationships, positioning, sizing, movement attributes, and flags for centering.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether 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)..intUsed in ladders, determines the height of the ladderOptional identifier for this entity (if required).Initial collectable visibilityLinked entity id, used for relationships like triggers (if applicable)..intUsed in ladders, the offset of always visible ladder rungsMovement range of the entity (if applicable).Rotation angle of the entity in degrees (if applicable).floatSafe x-coordinate for fallback or respawn.floatSafe 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).intX-coordinate position of the entity.intY-coordinate position of the entity. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
Type of the entity (e.g., floor, platform, collectable) (required). -
subtype
Subtype of the entity (e.g., ground, moving, potion) (if required). -
id
Optional identifier for this entity (if required). -
linked
Linked entity id, used for relationships like triggers (if applicable).. -
target
Target property (e.g., health, door) (if required).. -
tooltip
Tooltip or description text for this entity (optional). -
extra
Extra metadata for custom behavior (if applicable).. -
direction
Direction of directional entities (e.g., up, left, etc.) (if applicable). -
x
public int xX-coordinate position of the entity. -
y
public int yY-coordinate position of the entity. -
sx
Scale factor along the x-axis (optional). -
sy
Scale factor along the y-axis (optional). -
speed
Movement speed of the entity (if applicable). -
range
Movement range of the entity (if applicable). -
rotation
Rotation angle of the entity in degrees (if applicable). -
dx
Delta movement along the x-axis (for moving entities). -
dy
Delta movement along the y-axis (for moving entities). -
safeX
public float safeXSafe x-coordinate for fallback or respawn. -
safeY
public float safeYSafe y-coordinate for fallback or respawn. -
centerX
Whether the entity should be centered along the x-axis. (optional) -
centerY
Whether the entity should be centered along the y-axis. (optional) -
isVisible
Initial collectable visibility -
height
public int heightUsed in ladders, determines the height of the ladder -
offset
public int offsetUsed in ladders, the offset of always visible ladder rungs
-
-
Constructor Details
-
E
public E()
-