scalata.domain.entities.items
Members list
Type members
Classlikes
Small, throw-away item with no direct effect.
Small, throw-away item with no direct effect.
- Usable – using it simply discards the item (flavour only).
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Pickabletrait Itemtrait Interactabletrait Entityclass Objecttrait Matchableclass AnyShow all
Door that moves the player to the next floor when interacted with.
Door that moves the player to the next floor when interacted with.
- interact – increments
currentLevelin the session’sGameStateand returns a successful scalata.domain.util.GameResult.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Itemtrait Interactabletrait Entityclass Objecttrait Matchableclass AnyShow all
Consumable healing potion.
Consumable healing potion.
- amount points healed when used.
- Pickable calling
interactpicks up the potion. - Usable consuming the potion heals the player and removes it from the inventory.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Pickabletrait Itemtrait Interactabletrait Entityclass Objecttrait Matchableclass AnyShow all
Floor decoration that displays the current tower level when the player interacts with it.
Floor decoration that displays the current tower level when the player interacts with it.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Itemtrait Interactabletrait Entityclass Objecttrait Matchableclass AnyShow all
Equippable weapon.
Equippable weapon.
==== Key points ====
-
damage – base attack value added to the player’s own power.
-
Pickable – calling
interactremoves the item from the floor and places it in the player inventory. -
Usable – the given instance in the companion equips the weapon and then deletes it from the bag (one-slot logic).
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Pickabletrait Itemtrait Interactabletrait Entityclass Objecttrait Matchableclass AnyShow all