AI_FatalError Class Reference

A throw-class that is given when the AI made a fatal error. More...

#include <ai_instance.hpp>

Public Member Functions

 AI_FatalError (const char *msg)
 Creates a "fatal error" exception.
const char * GetErrorMessage ()
 The error message associated with the fatal error.

Private Attributes

const char * msg
 The error message.

Detailed Description

A throw-class that is given when the AI made a fatal error.

Definition at line 57 of file ai_instance.hpp.


Constructor & Destructor Documentation

AI_FatalError::AI_FatalError ( const char *  msg  )  [inline]

Creates a "fatal error" exception.

Parameters:
msg The message describing the cause of the fatal error.

Definition at line 63 of file ai_instance.hpp.


Member Function Documentation

const char* AI_FatalError::GetErrorMessage (  )  [inline]

The error message associated with the fatal error.

Returns:
The error message.

Definition at line 71 of file ai_instance.hpp.

References msg.

Referenced by AIInstance::AIInstance(), AIInstance::GameLoop(), and AIInstance::Save().


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

Generated on Fri May 27 04:20:26 2011 for OpenTTD by  doxygen 1.6.1