.. index:: pair: class; EE::Scene::Actions::ActionInterpolation2d .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d: class EE::Scene::Actions::ActionInterpolation2d =============================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ActionInterpolation2d: public :ref:`EE::Scene::Action` { public: // methods virtual void :ref:`start`(); virtual void :ref:`stop`(); virtual void :ref:`update`(const :ref:`Time`& time); virtual bool :ref:`isDone`(); virtual :ref:`Float` :ref:`getCurrentProgress`(); virtual :ref:`Time` :ref:`getTotalTime`(); :ref:`Interpolation2d`* :target:`getInterpolation`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::function`*, const :ref:`ActionType`&)> :ref:`ActionCallback`; typedef :ref:`Uint64` :ref:`UniqueID`; // enums enum :ref:`ActionType`; // methods virtual void :ref:`start`() = 0; virtual void :ref:`stop`() = 0; virtual void :ref:`update`(const :ref:`Time`& time) = 0; virtual bool :ref:`isDone`() = 0; virtual :ref:`Float` :ref:`getCurrentProgress`() = 0; virtual :ref:`Time` :ref:`getTotalTime`() = 0; virtual :ref:`Action`* :ref:`clone`() const; virtual :ref:`Action`* :ref:`reverse`() const; :ref:`Uint32` :ref:`getFlags`() const; void :ref:`setFlags`(const :ref:`Uint32`& flags); :ref:`UniqueID` :ref:`getTag`() const; void :ref:`setTag`(const :ref:`UniqueID`& tag); :ref:`Node`* :ref:`getTarget`() const; :ref:`Uint32` :ref:`addEventListener`(const :ref:`ActionType`& actionType, const :ref:`ActionCallback`& callback); :ref:`Action`* :ref:`on`(const :ref:`ActionType`& actionType, const :ref:`ActionCallback`& callback); void :ref:`removeEventListener`(const :ref:`Uint32`& callbackId); void :ref:`sendEvent`(const :ref:`ActionType`& actionType); void :ref:`setTarget`(:ref:`Node`* target); void :ref:`setId`(const :ref:`Action::UniqueID`& id); const :ref:`Action::UniqueID`& :ref:`getId`(); .. _details-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; start .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d_1aecd7699cc37ec199c48bc9da0007b32b: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void start() Starts the action. .. index:: pair: function; stop .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d_1a0b232a3fb38f95231319dc4f6f081eda: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void stop() Stops the actions (pause it, it will not reset the animation state). .. index:: pair: function; update .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d_1a97f6fc29086abb5bbbf455a216c5e617: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void update(const :ref:`Time`& time) Update the action state (shouldn't be called manually unless you actually now what you are doing) .. index:: pair: function; isDone .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d_1a259bd0f0406740620a05f0b57c07e013: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool isDone() .. rubric:: Returns: If the action is completed. .. index:: pair: function; getCurrentProgress .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d_1a0385e08b72760a53d70d4804c61e8df2: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Float` getCurrentProgress() .. rubric:: Returns: The current progress percentage. Normalized between 0 and 1. .. index:: pair: function; getTotalTime .. _doxid-class_e_e_1_1_scene_1_1_actions_1_1_action_interpolation2d_1a43afdc17966ae56f073480ac0bad6964: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Time` getTotalTime() The total action time.