Class: Dialogue

Dialogue(center, w, h, color) → {Dialogue}

new Dialogue(center, w, h, color) → {Dialogue}

Constructor for the dialogue class.
Parameters:
Name Type Description
center 2DArray
w int
h int
color RGBAColorArray
Source:
Returns:
Type
Dialogue

Methods

dismiss() → {void}

Hides the dialogue UI.
Source:
Returns:
Type
void

draw(camera) → {void}

Draws the dialogue box and message object.
Parameters:
Name Type Description
camera CameraObject
Source:
Returns:
Type
void

goNext() → {void}

Updates the message object to display the next line of text.
Source:
Returns:
Type
void

load(newText) → {void}

Receives a new scene object to display and creates a new message to display the scene.
Parameters:
Name Type Description
newText ObjectArray
Source:
Returns:
Type
void

show() → {void}

Shows the dialogue UI
Source:
Returns:
Type
void

update() → {void}

Updates the message object to display the next word in a sentence to simulate animation.
Source:
Returns:
Type
void