Class Empty
java.lang.Object
net.regsirius06.engine.core.walls.Empty
Represents an empty space in the labyrinth.
The Empty class is an implementation of WallState that defines
a non-obstructive, passable area. It is the opposite of a solid wall, meaning
that it does not block movement or absorb energy.
This class is useful for defining pathways, open spaces, or areas where players and entities can move freely.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the absorption coefficient of this state.@NotNull ColorgetColor()Returns the color representation of this state.booleanisEmpty()Indicates whether this state represents an empty space.booleanIndicates whether this state can be dynamically generated.booleanisLight()Indicates whether this state represents a light source.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
-
Empty
public Empty()
-
-
Method Details
-
isLight
public boolean isLight()Indicates whether this state represents a light source. -
isEmpty
public boolean isEmpty()Indicates whether this state represents an empty space. -
isGenerable
public boolean isGenerable()Indicates whether this state can be dynamically generated.- Specified by:
isGenerablein interfaceWallState- Returns:
truesince empty spaces can be generated in labyrinths
-
getAbsorption
public double getAbsorption()Returns the absorption coefficient of this state.Since this is an empty space, it does not absorb any energy.
- Specified by:
getAbsorptionin interfaceWallState- Returns:
0, meaning no absorption
-
getColor
Returns the color representation of this state.The empty space is represented as black.
- Specified by:
getColorin interfaceWallState- Returns:
Color.BLACK, representing an empty void
-