scalata.domain.entities.items.Weapon
See theWeapon companion object
final case class Weapon(id: String, position: Option[Point2D], name: String, itemClass: ItemClasses, damage: Int) extends Item, Pickable
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
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Pickabletrait Itemtrait Interactabletrait Entityclass Objecttrait Matchableclass Any
Members list
In this article