java.lang.Object
net.regsirius06.engine.core.walls.End
All Implemented Interfaces:
Loadable, WallState

public final class End extends Object implements WallState
Represents the boundary wall of the labyrinth.

The End class is an implementation of WallState that defines an impassable barrier at the edge of the labyrinth. It serves as a world boundary, preventing movement beyond its limits.

This type of wall is often used to mark the outermost structure of the labyrinth or to designate a restricted area.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    End()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the absorption coefficient of this state.
    @NotNull Color
    Returns the color representation of this wall.
    boolean
    Indicates whether this wall state represents an empty space.
    boolean
    Indicates whether this wall state can be dynamically generated.
    boolean
    Indicates whether this wall state emits light.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.regsirius06.engine.API.WallState

    thisEquals
  • Constructor Details

    • End

      public End()
  • Method Details

    • isLight

      public boolean isLight()
      Indicates whether this wall state emits light.
      Specified by:
      isLight in interface WallState
      Returns:
      false since the boundary wall does not emit light
    • isEmpty

      public boolean isEmpty()
      Indicates whether this wall state represents an empty space.
      Specified by:
      isEmpty in interface WallState
      Returns:
      false since this class represents a solid boundary
    • isGenerable

      public boolean isGenerable()
      Indicates whether this wall state can be dynamically generated.
      Specified by:
      isGenerable in interface WallState
      Returns:
      true since boundary walls can be placed procedurally
    • getAbsorption

      public double getAbsorption()
      Returns the absorption coefficient of this state.

      This boundary wall absorbs some energy, making it slightly reflective.

      Specified by:
      getAbsorption in interface WallState
      Returns:
      0.2, representing a moderate absorption level
    • getColor

      @NotNull public @NotNull Color getColor()
      Returns the color representation of this wall.

      The boundary wall is visually represented as red.

      Specified by:
      getColor in interface WallState
      Returns:
      Color.RED, indicating a world boundary