AILog Class Reference

Class that handles all log related functions. More...

Inheritance diagram for AILog:

AIObject

Public Types

enum  AILogType {
  LOG_SQ_ERROR = 0,
  LOG_ERROR = 1,
  LOG_SQ_INFO = 2,
  LOG_WARNING = 3,
  LOG_INFO = 4
}
 Log levels; The value is also feed to DEBUG() lvl. More...

Static Public Member Functions

static void Info (const char *message)
 Print an Info message to the logs.
static void Warning (const char *message)
 Print a Warning message to the logs.
static void Error (const char *message)
 Print an Error message to the logs.
static void FreeLogPointer ()
 Free the log pointer.

Friends

class AIController

Data Structures

struct  LogData
 Internal representation of the log-data inside the AI. More...

Detailed Description

Class that handles all log related functions.

Member Enumeration Documentation

Log levels; The value is also feed to DEBUG() lvl.

This has no use for you, as AI writer.

Enumerator:
LOG_SQ_ERROR  Squirrel printed an error.
LOG_ERROR  User printed an error.
LOG_SQ_INFO  Squirrel printed some info.
LOG_WARNING  User printed some warning.
LOG_INFO  User printed some info.


Member Function Documentation

static void AILog::Info ( const char *  message  )  [static]

Print an Info message to the logs.

Parameters:
message The message to log.

static void AILog::Warning ( const char *  message  )  [static]

Print a Warning message to the logs.

Parameters:
message The message to log.

static void AILog::Error ( const char *  message  )  [static]

Print an Error message to the logs.

Parameters:
message The message to log.

static void AILog::FreeLogPointer (  )  [static]

Free the log pointer.

Note:
DO NOT CALL YOURSELF; leave it to the internal AI programming.


Generated on Wed Sep 15 14:11:49 2010 for OpenTTD NoAI API by  doxygen 1.5.6