Pickable
scalata.domain.entities.components.Pickable
trait Pickable
Mixin for every item that the player can pick up.
- pick removes the item from the current room and adds it to the player’s inventory, returning an updated GameSession.
- If the room referenced by
GameState.currentRoomcannot be found (world corruption), the method throwsIllegalStateException.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article