Drag[en]gine Script Module DragonScript Script API  1.0
ConsoleCommandList Class Reference

List of console commands. More...

Inheritance diagram for ConsoleCommandList:

Public Member Functions

void add (ConsoleCommand command)
 Add console command. More...
 
void forEach (Block ablock)
 Visit commands with a block. More...
 
ConsoleCommand getAt (int index)
 Command at index. More...
 
int getCount ()
 Number of commands. More...
 
ConsoleCommand getNamed (String name)
 Named command or null if not found. More...
 
bool has (String name)
 Named command is present. More...
 
ConsoleCommandList new ()
 Create command list. More...
 
void remove (ConsoleCommand command)
 Remove console command. More...
 
void removeAllConsoleCommands ()
 Remove all commands. More...
 

Detailed Description

List of console commands.

Member Function Documentation

§ add()

void add ( ConsoleCommand  command)

Add console command.

Exceptions
EInvalidParamCommand name is not valid.
EInvalidParamCommand with name is present.

§ forEach()

void forEach ( Block  ablock)

Visit commands with a block.

§ getAt()

ConsoleCommand getAt ( int  index)

Command at index.

Exceptions
EOutOfBOundaryindex is less than 0 or larger than or equal to getCount().

§ getCount()

int getCount ( )

Number of commands.

§ getNamed()

ConsoleCommand getNamed ( String  name)

Named command or null if not found.

§ has()

bool has ( String  name)

Named command is present.

§ new()

Create command list.

§ remove()

void remove ( ConsoleCommand  command)

Remove console command.

Exceptions
EInvalidParamCommand with name is absent.

§ removeAllConsoleCommands()

void removeAllConsoleCommands ( )

Remove all commands.


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