Class: SystemTitleCommand

SystemTitleCommand

A title command of the game

new SystemTitleCommand (json)

Name Type Description
json Object optional Json object describing the title screen command
Properties:
Name Type Description
kind TitleCommandKind The title command kind
script string The script formula

Extends

Methods

read (json) overrides

Read the JSON associated to the title screen command
Name Type Description
json Object Json object describing the title screen command

getAction ()function

Get the action function according to kind
Returns:
Type Description
function

startNewGame ()boolean

Callback function for start a new game
Returns:
Type Description
boolean

loadGame ()boolean

Callback function for loading an existing game
Returns:
Type Description
boolean

showSettings ()boolean

Callback function for loading an existing game
Returns:
Type Description
boolean

exit ()boolean

Callback function for closing the window
Returns:
Type Description
boolean

executeScript ()boolean

Callback function for closing the window
Returns:
Type Description
boolean

name ()string inherited overrides

Get the name according to current lang
Returns:
Type Description
string

getCommand () inherited overrides

Update lang according to a command list and iterator