Class Default
java.lang.Object
net.regsirius06.engine.core.walls.Default
Represents the default wall state in the labyrinth.
This class implements the WallState interface and defines a standard,
non-light, non-empty wall with a moderate absorption coefficient.
It serves as the default implementation for walls in the labyrinth system.
The default wall is generable, meaning it can be dynamically created within the labyrinth.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the absorption coefficient of the wall.@NotNull ColorgetColor()Returns the color of the wall.booleanisEmpty()Determines if the wall is empty (i.e., non-existent).booleanDetermines if the wall can be generated dynamically.booleanisLight()Determines if the wall allows light to pass through.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
-
Default
public Default()
-
-
Method Details
-
isLight
public boolean isLight()Determines if the wall allows light to pass through. -
isEmpty
public boolean isEmpty()Determines if the wall is empty (i.e., non-existent). -
isGenerable
public boolean isGenerable()Determines if the wall can be generated dynamically.- Specified by:
isGenerablein interfaceWallState- Returns:
truesince this wall type can be created in the labyrinth.
-
getAbsorption
public double getAbsorption()Returns the absorption coefficient of the wall.This value represents how much energy the wall absorbs when interacting with external forces (e.g., sound, light, or other mechanics).
- Specified by:
getAbsorptionin interfaceWallState- Returns:
- the absorption coefficient, which is
0.2for the default wall.
-
getColor
Returns the color of the wall.- Specified by:
getColorin interfaceWallState- Returns:
Color.GRAY, representing the default wall color.
-