src/ai/api/ai_object.hpp
branchnoai
changeset 9851 a5f5a7cf2b61
parent 9847 b89e6adc18d4
child 9863 73647fe2e301
equal deleted inserted replaced
9850:d3228c6a1376 9851:a5f5a7cf2b61
    43 		StringID last_error;
    43 		StringID last_error;
    44 		bool last_command_res;
    44 		bool last_command_res;
    45 		VehicleID new_vehicle_id;
    45 		VehicleID new_vehicle_id;
    46 		SignID new_sign_id;
    46 		SignID new_sign_id;
    47 		void *event_data;
    47 		void *event_data;
       
    48 		void *log_data;
    48 	};
    49 	};
    49 
    50 
    50 	/**
    51 	/**
    51 	 * The current mode of the AI players.
    52 	 * The current mode of the AI players.
    52 	 */
    53 	 */
   154 	 * If an AI starts, some internals needs to be resetted. This function
   155 	 * If an AI starts, some internals needs to be resetted. This function
   155 	 *   takes care of that.
   156 	 *   takes care of that.
   156 	 * @note NEVER use this yourself in your AI!
   157 	 * @note NEVER use this yourself in your AI!
   157 	 */
   158 	 */
   158 	static void ResetInternalPlayerData();
   159 	static void ResetInternalPlayerData();
       
   160 
       
   161 	/**
       
   162 	 * Get the pointer to store log message in.
       
   163 	 * @note NEVER use this yourself in your AI!
       
   164 	 */
       
   165 	static void *&GetLogPointer();
   159 };
   166 };
   160 
   167 
   161 #endif /* AI_OBJECT_HPP */
   168 #endif /* AI_OBJECT_HPP */