Package org.kikikan.deadbymoonlight.game
Class Totem
- java.lang.Object
-
- org.kikikan.deadbymoonlight.game.WorldObject
-
- org.kikikan.deadbymoonlight.game.Totem
-
public final class Totem extends WorldObject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCleansed()
Checks if this Totem was already cleansed.boolean
isHex()
Checks if this Totem is a Hex Totem.void
setDull()
Sets this Totem to a Dull Totem, if it is not cleansed, and not a Dull Totem already.void
setHex(Perk perk)
Sets this Totem to a Hex Totem.-
Methods inherited from class org.kikikan.deadbymoonlight.game.WorldObject
equals, getGame, getLocation, hashCode
-
-
-
-
Method Detail
-
isHex
public boolean isHex()
Checks if this Totem is a Hex Totem.- Returns:
- True if it is a Hex Totem.
-
isCleansed
public boolean isCleansed()
Checks if this Totem was already cleansed.- Returns:
- True if a Survivor has cleansed this Totem.
-
setHex
public void setHex(Perk perk)
Sets this Totem to a Hex Totem.- Parameters:
perk
- The Perk this Totem belongs to.- Throws:
java.lang.IllegalStateException
- If this Totem is already a Hex Totem or if it was already cleansed.
-
setDull
public void setDull()
Sets this Totem to a Dull Totem, if it is not cleansed, and not a Dull Totem already. In other words, removes the Perk that it was assigned to.
-
-