new QueueMessage(x, y, queue, consumer, fillStyle)
Message object between queue and consumer.
Parameters:
Name | Type | Description |
---|---|---|
x | number | x position of the message |
y | number | y position of the message |
queue | Queue | Queue object |
consumer | Consumer | Consumer object |
fillStyle | string |
- Source
Extends
Methods
addToScene(scene) → {object}
Add an object as actor to scene.
Parameters:
Name | Type | Description |
---|---|---|
scene | Scene | scene on canvas |
- Inherited From
Returns:
this
- Type:
- object
createUUID() → {string}
Generates an UUID, used to identify every object in the scene.
https://www.w3resource.com/javascript-exercises/fundamental/javascript-fundamental-exercise-253.php
https://www.w3resource.com/javascript-exercises/fundamental/javascript-fundamental-exercise-253.php
- Inherited From
Returns:
- uuid
- Type:
- string
render()
Renders a circle representing the message.
- Inherited From
- Source
setConsumer(consumer)
Sets the consumer with coordinates.
Parameters:
Name | Type | Description |
---|---|---|
consumer | Consumer | Consumer object |
- Source