Mercurial > fife-parpg
diff 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 |
line wrap: on
line diff
--- a/engine/core/model/structures/instance.h Wed Sep 02 16:06:27 2009 +0000 +++ b/engine/core/model/structures/instance.h Thu Sep 03 23:09:57 2009 +0000 @@ -204,6 +204,13 @@ */ unsigned int getActionRuntime(); + /** Sets the time in milliseconds how long an action has been active + * This was requested in Ticket #373. This way the state + * of the action can be saved and restored at a later time + * @parm The action time offset that should be applied + */ + void setActionRuntime(unsigned int time_offset); + /** Performs given named action to the instance. While performing the action * moves instance to given target with given speed * @param action_name name of the action