Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Commands.CommandManager Class Reference

Game commands. More...

Inheritance diagram for Dragengine.Commands.CommandManager:

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

Detailed Description

Game commands.

Member Function Documentation

◆ add()

void Dragengine.Commands.CommandManager.add ( Command command)

Add command.

Referenced by forEach().

◆ forEach()

void Dragengine.Commands.CommandManager.forEach ( Block ablock)

Visit commands with a block.

References add(), isValidName(), and pCommands.

Referenced by isValidName().

◆ getAt()

Command Dragengine.Commands.CommandManager.getAt ( int index)

Command at index.

References pCommands.

Referenced by getNamed().

◆ getCount()

int Dragengine.Commands.CommandManager.getCount ( )

Number of commands.

References getCount().

Referenced by getCount().

◆ getNamed()

Command Dragengine.Commands.CommandManager.getNamed ( String name)

Named command or null if absent.

References getAt(), and pCommands.

Referenced by isValidName(), remove(), and removeNamed().

◆ isValidName()

bool Dragengine.Commands.CommandManager.isValidName ( String name)
static

Command name is valid.

References forEach(), getNamed(), isValidName(), pCommands, removeAll(), and removeNamed().

Referenced by forEach(), and isValidName().

◆ new()

CommandManager Dragengine.Commands.CommandManager.new ( )

Create command manager.

References new(), and pCommands.

Referenced by new().

◆ remove()

void Dragengine.Commands.CommandManager.remove ( Command command)

Remove command.

References getNamed(), and pCommands.

◆ removeAll()

void Dragengine.Commands.CommandManager.removeAll ( )

Removes all commands.

Referenced by isValidName().

◆ removeNamed()

bool Dragengine.Commands.CommandManager.removeNamed ( String name)

Remove named command if present.

Returns
true if removed otherwise false.

References getNamed().

Referenced by isValidName().

Member Data Documentation

◆ pCommands

Array Dragengine.Commands.CommandManager.pCommands

The documentation for this class was generated from the following file: