Methods
(static) clearChat()
- Source:
(static) handleOutboundMessage()
Handles direction and parsing of message being passed to server from client
- Source:
(static) inititializeChat()
Initializes behavior of chat box in Versus mode
- Source:
(static) printMessage(messageContents, profile)
Displays a message to the in-game chat box
Parameters:
| Name | Type | Description |
|---|---|---|
messageContents |
string | text content of message to be displayed |
profile |
Types.ServerToClientProfile | username to associate with message |
- Source:
(inner) handleCommand(command)
Handles direction of command (any message prefaced by COMMAND_CHARACTER)
to appropriate functions
Parameters:
| Name | Type | Description |
|---|---|---|
command |
string | command entered by user (i.e., without COMMAND_CHARACTER prepended) |
- Source:
(inner) printSystemMessage(systemMessage)
Displays a message to the in-game chat box, with the username set as
a system user (i.e., for meta-game alerts)
Parameters:
| Name | Type | Description |
|---|---|---|
systemMessage |
string | text content of message to be displayed |
- Source: