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

Console containing system and game messages. More...

Inheritance diagram for Console:

Public Member Functions

void addErrorMessage (Exception exception)
 Add error message. More...
 
void addMessage (ConsoleMessage message)
 Add message. More...
 
void addSystemMessage (String message)
 Add system message. More...
 
void clearConsole ()
 Clear all messages. More...
 
void forEachMessage (Block ablock)
 Visit messages with block with parameter ConsoleMessage. More...
 
int getBufferSize ()
 Buffer size. More...
 
ConsoleMessage getMessage (int index)
 Message at index. More...
 
int getMessageCount ()
 Number of messages. More...
 
Console new (int size)
 Create console with initial size. More...
 
void removeListener (ConsoleListener listener)
 Remove listener. More...
 

Detailed Description

Console containing system and game messages.

Listeners are resposible to display the console output if required.

Member Function Documentation

◆ addErrorMessage()

void addErrorMessage ( Exception  exception)

Add error message.

Shortcut to add system message with timestamp and exception trace.

◆ addMessage()

void addMessage ( ConsoleMessage  message)

Add message.

◆ addSystemMessage()

void addSystemMessage ( String  message)

Add system message.

Shortcut to add system message with timestamp of now.

◆ clearConsole()

void clearConsole ( )

Clear all messages.

◆ forEachMessage()

void forEachMessage ( Block  ablock)

Visit messages with block with parameter ConsoleMessage.

◆ getBufferSize()

int getBufferSize ( )

Buffer size.

◆ getMessage()

ConsoleMessage getMessage ( int  index)

Message at index.

◆ getMessageCount()

int getMessageCount ( )

Number of messages.

◆ new()

Console new ( int  size)

Create console with initial size.

◆ removeListener()

void removeListener ( ConsoleListener  listener)

Remove listener.


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