scalata.domain.entities.items

Members list

Type members

Classlikes

final case class Dust(id: String, position: Option[Point2D], name: String, itemClass: ItemClasses) extends Item, Pickable

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 Serializable
trait Product
trait Equals
trait Pickable
trait Item
trait Interactable
trait Entity
class Object
trait Matchable
class Any
Show all
object Dust

Companion containing the Usable instance.

Companion containing the Usable instance.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Dust.type
final case class ExitDoor(id: String, position: Option[Point2D], name: String, itemClass: ItemClasses) extends Item

Door that moves the player to the next floor when interacted with.

Door that moves the player to the next floor when interacted with.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Item
trait Interactable
trait Entity
class Object
trait Matchable
class Any
Show all
final case class Potion(id: String, position: Option[Point2D], name: String, itemClass: ItemClasses, amount: Int) extends Item, Pickable

Consumable healing potion.

Consumable healing potion.

  • amount points healed when used.
  • Pickable calling interact picks up the potion.
  • Usable consuming the potion heals the player and removes it from the inventory.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Pickable
trait Item
trait Interactable
trait Entity
class Object
trait Matchable
class Any
Show all
object Potion

Companion with Usable instance logic.

Companion with Usable instance logic.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Potion.type
final case class Sign(id: String, position: Option[Point2D], name: String, itemClass: ItemClasses) extends Item

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 Serializable
trait Product
trait Equals
trait Item
trait Interactable
trait Entity
class Object
trait Matchable
class Any
Show all
final case class Weapon(id: String, position: Option[Point2D], name: String, itemClass: ItemClasses, damage: Int) extends Item, Pickable

Equippable weapon.

Equippable weapon.

==== Key points ====

  • damage – base attack value added to the player’s own power.

  • Pickable – calling interact removes 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 Serializable
trait Product
trait Equals
trait Pickable
trait Item
trait Interactable
trait Entity
class Object
trait Matchable
class Any
Show all
object Weapon

Companion utilities and Usable instance.

Companion utilities and Usable instance.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Weapon.type