@@ -134,27 +134,42 @@ protected:
/**
* Get the latest stored allow_do_command.
* If this is false, you are not allowed to do any DoCommands.
*/
static bool GetAllowDoCommand();
* Get the pointer to store event data in.
static void *&GetEventPointer();
* Set the cost of the last command.
static void SetLastCost(Money last_cost);
* Get the cost of the last command.
static Money GetLastCost();
* Set a variable that can be used by callback functions to pass information.
static void SetCallbackVariable(int index, int value);
* Get the variable that is used by callback functions to pass information.
static int GetCallbackVariable(int index);
public:
* Store the latest result of a DoCommand per company.
* @note NEVER use this yourself in your AI!
* @param res The result of the last command.
static void SetLastCommandRes(bool res);
* Store a new_vehicle_id per company.