RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.dialogue.ItemDialogue Class Reference

Handles the item on dialogue. More...

Inheritance diagram for com.runehive.content.dialogue.ItemDialogue:
Collaboration diagram for com.runehive.content.dialogue.ItemDialogue:

Public Member Functions

void accept (DialogueFactory factory)
String getContext ()
 Gets the context of the dialogue.
int getItem ()
 Gets the item display of the dialogue.
String getTitle ()
 Gets the title of the dialogue.
 ItemDialogue (String title, String context, int item)
 Constructs a new ItemDialogue.

Private Attributes

final String context
 The context of the item dialogue.
final int item
 The item being displayed on the dialogue.
final String title
 The title of the item dialogue.

Detailed Description

Handles the item on dialogue.

Author
Daniel

Definition at line 8 of file ItemDialogue.java.

Constructor & Destructor Documentation

◆ ItemDialogue()

com.runehive.content.dialogue.ItemDialogue.ItemDialogue ( String title,
String context,
int item )

Constructs a new ItemDialogue.

Parameters
titleThe title of the dialogue.
contextThe context of the dialogue.
itemThe item being displayed on the dialogue.

Definition at line 26 of file ItemDialogue.java.

26 {
27 this.title = title;
28 this.context = context;
29 this.item = item;
30 }

References context, item, and title.

Member Function Documentation

◆ accept()

void com.runehive.content.dialogue.ItemDialogue.accept ( DialogueFactory factory)

Definition at line 60 of file ItemDialogue.java.

60 {
61 factory.sendItem(this);
62 }

References com.runehive.content.dialogue.DialogueFactory.sendItem().

Here is the call graph for this function:

◆ getContext()

String com.runehive.content.dialogue.ItemDialogue.getContext ( )

Gets the context of the dialogue.

Returns
The dialogue context.

Definition at line 46 of file ItemDialogue.java.

46 {
47 return context;
48 }

References context.

◆ getItem()

int com.runehive.content.dialogue.ItemDialogue.getItem ( )

Gets the item display of the dialogue.

Returns
The item being displayed on the dialogue.

Definition at line 55 of file ItemDialogue.java.

55 {
56 return item;
57 }

References item.

◆ getTitle()

String com.runehive.content.dialogue.ItemDialogue.getTitle ( )

Gets the title of the dialogue.

Returns
The dialogue title.

Definition at line 37 of file ItemDialogue.java.

37 {
38 return title;
39 }

References title.

Member Data Documentation

◆ context

final String com.runehive.content.dialogue.ItemDialogue.context
private

The context of the item dialogue.

Definition at line 14 of file ItemDialogue.java.

Referenced by getContext(), and ItemDialogue().

◆ item

final int com.runehive.content.dialogue.ItemDialogue.item
private

The item being displayed on the dialogue.

Definition at line 17 of file ItemDialogue.java.

Referenced by getItem(), and ItemDialogue().

◆ title

final String com.runehive.content.dialogue.ItemDialogue.title
private

The title of the item dialogue.

Definition at line 11 of file ItemDialogue.java.

Referenced by getTitle(), and ItemDialogue().


The documentation for this class was generated from the following file: