Mercurial > fife-parpg
comparison engine/core/model/structures/instance.h @ 348:48c38e92e2bd
Added Instance::setActionRuntime() as requested in Ticket #373
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 03 Sep 2009 23:09:57 +0000 |
parents | be246fb3a0df |
children | 16c2b3ee59ce |
comparison
equal
deleted
inserted
replaced
347:7fa5451d685d | 348:48c38e92e2bd |
---|---|
202 * In case there is no current action, returns -1 | 202 * In case there is no current action, returns -1 |
203 * @return action runtime | 203 * @return action runtime |
204 */ | 204 */ |
205 unsigned int getActionRuntime(); | 205 unsigned int getActionRuntime(); |
206 | 206 |
207 /** Sets the time in milliseconds how long an action has been active | |
208 * This was requested in Ticket #373. This way the state | |
209 * of the action can be saved and restored at a later time | |
210 * @parm The action time offset that should be applied | |
211 */ | |
212 void setActionRuntime(unsigned int time_offset); | |
213 | |
207 /** Performs given named action to the instance. While performing the action | 214 /** Performs given named action to the instance. While performing the action |
208 * moves instance to given target with given speed | 215 * moves instance to given target with given speed |
209 * @param action_name name of the action | 216 * @param action_name name of the action |
210 * @param target place where to move this instance | 217 * @param target place where to move this instance |
211 * @param speed speed used for movement. Units = distance 1 in layer coordinates per second | 218 * @param speed speed used for movement. Units = distance 1 in layer coordinates per second |