src/ai/api/ai_controller.hpp
branchnoai
changeset 11043 e44adcf4ed4d
parent 10958 65088d587094
child 11097 6967c52c78c5
equal deleted inserted replaced
11042:b16e983214c3 11043:e44adcf4ed4d
    57 	/**
    57 	/**
    58 	 * Sleep for X ticks. The code continues after this line when the X AI ticks
    58 	 * Sleep for X ticks. The code continues after this line when the X AI ticks
    59 	 *   are passed. Mind that an AI tick is different from in-game ticks and
    59 	 *   are passed. Mind that an AI tick is different from in-game ticks and
    60 	 *   differ per AI speed.
    60 	 *   differ per AI speed.
    61 	 * @param ticks the ticks to wait
    61 	 * @param ticks the ticks to wait
       
    62 	 * @pre ticks > 0.
    62 	 * @post the value of GetTick() will be changed exactly 'ticks' in value after
    63 	 * @post the value of GetTick() will be changed exactly 'ticks' in value after
    63 	 *   calling this.
    64 	 *   calling this.
    64 	 */
    65 	 */
    65 	static void Sleep(uint ticks);
    66 	static void Sleep(int ticks);
    66 
    67 
    67 	/**
    68 	/**
    68 	 * When Squirrel triggers a print, this function is called.
    69 	 * When Squirrel triggers a print, this function is called.
    69 	 *  Squirrel calls this when 'print' is used, or when the script made an error.
    70 	 *  Squirrel calls this when 'print' is used, or when the script made an error.
    70 	 * @param error_msg If true, it is a Squirrel error message.
    71 	 * @param error_msg If true, it is a Squirrel error message.