Bubble
Creates player speach bubbles
Constructor Summary
Public Constructor | ||
public |
constructor(game: Game) Default constructor |
Member Summary
Public Members | ||
public |
An object with all of the bubbles to display |
|
public |
container: DOMElement Jquery reference to the display bubble for text messages |
|
public |
Instance of the game object |
Method Summary
Public Methods | ||
public |
clean(): * Destroy all the active bubbles |
|
public |
Create a bubble message |
|
public |
Delete a specific bubble |
|
public |
Fetch a specific bubble |
|
public |
Set a speech bubble to a specific entity |
|
public |
Update the display of the bubbles (automatically disappear over time) |
Public Constructors
Public Members
Public Methods
public create(id: Number, message: String, time: Number, duration: Number): Blob source
Create a bubble message
public destroy(id: Number): * source
Delete a specific bubble
Params:
Name | Type | Attribute | Description |
id | Number | the id of the bubble message |
Return:
* | null, the bubble is removed from the array |
public get(id: Number): Bubble source
Fetch a specific bubble
Params:
Name | Type | Attribute | Description |
id | Number | the id of the bubble message |