Class End
java.lang.Object
net.regsirius06.engine.core.walls.End
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 -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the absorption coefficient of this state.@NotNull ColorgetColor()Returns the color representation of this wall.booleanisEmpty()Indicates whether this wall state represents an empty space.booleanIndicates whether this wall state can be dynamically generated.booleanisLight()Indicates whether this wall state emits light.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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. -
isEmpty
public boolean isEmpty()Indicates whether this wall state represents an empty space. -
isGenerable
public boolean isGenerable()Indicates whether this wall state can be dynamically generated.- Specified by:
isGenerablein interfaceWallState- Returns:
truesince 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:
getAbsorptionin interfaceWallState- Returns:
0.2, representing a moderate absorption level
-
getColor
Returns the color representation of this wall.The boundary wall is visually represented as red.
-