Drag[en]gine Script Module DragonScript  1.21
Dragengine.Utils.Console Class Reference

Console containing system and game messages. More...

Inheritance diagram for Dragengine.Utils.Console:

Public Member Functions

void addError (String message, Exception exception)
 Add error message with exception trace. More...
 
void addListener (ConsoleListener listener)
 Add listener. More...
 
void addMessage (ConsoleMessage message)
 Add message. 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...
 
void setBufferSize (int size)
 Set buffer size. More...
 

Detailed Description

Console containing system and game messages.

Listeners are resposible to display the console output if required.

Member Function Documentation

◆ addError()

void Dragengine.Utils.Console.addError ( String  message,
Exception  exception 
)

Add error message with exception trace.

◆ addListener()

void Dragengine.Utils.Console.addListener ( ConsoleListener  listener)

Add listener.

◆ addMessage()

void Dragengine.Utils.Console.addMessage ( ConsoleMessage  message)

Add message.

◆ forEachMessage()

void Dragengine.Utils.Console.forEachMessage ( Block  ablock)

Visit messages with block with parameter ConsoleMessage.

◆ getBufferSize()

int Dragengine.Utils.Console.getBufferSize ( )

Buffer size.

◆ getMessage()

ConsoleMessage Dragengine.Utils.Console.getMessage ( int  index)

Message at index.

◆ getMessageCount()

int Dragengine.Utils.Console.getMessageCount ( )

Number of messages.

◆ new()

Console Dragengine.Utils.Console.new ( int  size)

Create console with initial size.

◆ removeListener()

void Dragengine.Utils.Console.removeListener ( ConsoleListener  listener)

Remove listener.

◆ setBufferSize()

void Dragengine.Utils.Console.setBufferSize ( int  size)

Set buffer size.

Version
1.7

If buffer size differs clears console then changes buffer size.


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