scalata.domain.entities.Item
Base trait for every pick-able game object (potions, weapons, etc.).
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Known subtypes
-
Members list
Create the same item at a given position.
Create the same item at a given position.
Attributes
true if the item has been removed from the floor.
true if the item has been removed from the floor.
Attributes
Glyph used by the ASCII renderer.
Glyph used by the ASCII renderer.
Attributes
-
Definition Classes
-
Any
Perform the interaction logic.
Perform the interaction logic.
Value parameters
-
gameSession
-
current immutable snapshot
Attributes
-
Returns
-
updated snapshot or an error wrapped in GameResult
-
Inherited from:
-
Interactable
Attributes
-
Inherited from:
-
Entity
Attributes
-
Inherited from:
-
Entity