|
Drag[en]gine Script Module DragonScript 1.35
|
Public Member Functions | |
| void | add (Command command) |
| Add command. | |
| void | forEach (Block ablock) |
| Visit commands with a block. | |
| Command | getAt (int index) |
| Command at index. | |
| int | getCount () |
| Number of commands. | |
| Command | getNamed (String name) |
| Named command or null if absent. | |
| CommandManager | new () |
| Create command manager. | |
| void | remove (Command command) |
| Remove command. | |
| void | removeAll () |
| Removes all commands. | |
| bool | removeNamed (String name) |
| Remove named command if present. | |
Static Public Member Functions | |
| static bool | isValidName (String name) |
| Command name is valid. | |
Public Attributes | |
| Array | pCommands |
Game commands.
| void Dragengine.Commands.CommandManager.add | ( | Command | command | ) |
Add command.
Referenced by forEach().
| void Dragengine.Commands.CommandManager.forEach | ( | Block | ablock | ) |
Visit commands with a block.
References add(), isValidName(), and pCommands.
Referenced by isValidName().
| Command Dragengine.Commands.CommandManager.getAt | ( | int | index | ) |
| int Dragengine.Commands.CommandManager.getCount | ( | ) |
| Command Dragengine.Commands.CommandManager.getNamed | ( | String | name | ) |
Named command or null if absent.
References getAt(), and pCommands.
Referenced by isValidName(), remove(), and removeNamed().
|
static |
Command name is valid.
References forEach(), getNamed(), isValidName(), pCommands, removeAll(), and removeNamed().
Referenced by forEach(), and isValidName().
| CommandManager Dragengine.Commands.CommandManager.new | ( | ) |
| void Dragengine.Commands.CommandManager.remove | ( | Command | command | ) |
Remove command.
References getNamed(), and pCommands.
| void Dragengine.Commands.CommandManager.removeAll | ( | ) |
Removes all commands.
Referenced by isValidName().
| bool Dragengine.Commands.CommandManager.removeNamed | ( | String | name | ) |
Remove named command if present.
References getNamed().
Referenced by isValidName().
| Array Dragengine.Commands.CommandManager.pCommands |
Referenced by forEach(), getAt(), getNamed(), isValidName(), new(), and remove().