Item

constructor(identifier: String, description: String, takeable: Boolean = false, interaction: Interaction = defaultInteraction)

Provides an item that can appear in a Game. The item must have a identifier and a description. Optionally the item can be made takeable by setting takeable to true, and a interaction to define how this interacts with various InteractWithItem specified with interaction.


constructor(identifier: Identifier, description: Description, takeable: Boolean = false, interaction: Interaction = defaultInteraction)