Usable

scalata.domain.entities.components.Usable
See theUsable companion object
trait Usable[A <: Item, E <: Entity]

Type-class describing an item that can be used by an entity.

==== Contract ====

  • A – concrete item subtype.

  • E – entity subtype that can own / use the item.

  • use returns a new instance of the owner reflecting the item’s effect (pure, no mutation).

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def use(item: A, owner: E): E