ExitDoor

scalata.domain.entities.items.ExitDoor
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.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Item
trait Interactable
trait Entity
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def interact(gameSession: GameSession): GameResult[GameSession]

Perform the interaction logic.

Perform the interaction logic.

Value parameters

gameSession

current immutable snapshot

Attributes

Returns

updated snapshot or an error wrapped in GameResult

Definition Classes
override def spawn(pos: Option[Point2D]): ExitDoor

Create the same item at a given position.

Create the same item at a given position.

Attributes

Definition Classes

Inherited methods

def isPicked: Boolean

true if the item has been removed from the floor.

true if the item has been removed from the floor.

Attributes

Inherited from:
Item
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def toString: String

Glyph used by the ASCII renderer.

Glyph used by the ASCII renderer.

Attributes

Definition Classes
Item -> Any
Inherited from:
Item