Sign

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

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]

Display the current level without modifying the session.

Display the current level without modifying the session.

Attributes

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

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