AIExecMode Class Reference

Class to switch current mode to Execute Mode. More...

Inheritance diagram for AIExecMode:

AIObject

Public Member Functions

 AIExecMode ()
 Creating instance of this class switches the build mode to Execute.
 ~AIExecMode ()
 Destroying this instance reset the building mode to the mode it was in when the instance was created.

Static Protected Member Functions

static bool ModeProc (TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs)
 The callback proc for Execute mode.

Detailed Description

Class to switch current mode to Execute Mode.

If you create an instance of this class, the mode will be switched to Execute. The original mode is stored and recovered from when ever the instance is destroyed. In Execute mode all commands you do are executed for real.


Constructor & Destructor Documentation

AIExecMode::AIExecMode (  ) 

Creating instance of this class switches the build mode to Execute.

Note:
When the instance is destroyed, he restores the mode that was current when the instance was created!


Generated on Tue Sep 8 20:55:28 2009 for OpenTTD NoAI API by  doxygen 1.5.6