Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3851 in orxonox.OLD for orxonox/trunk/src/simple_animation.h


Ignore:
Timestamp:
Apr 17, 2005, 1:21:59 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: animation: more adaptions to the new Framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/simple_animation.h

    r3850 r3851  
    1818class Vector;
    1919class Quaternion;
    20 class WorldEntity;
    2120class PNode;
    2221
     
    3332  Vector* position;
    3433  Quaternion* direction;
    35   WorldEntity* object;
     34  PNode* object;
    3635  float time;
    3736  movementMode mode;
     
    5857  void setAnimFunc(ANIM_FUNCTION animFunc);
    5958
     59 private:
    6060  float constant(float timePassed) const;
    6161  float linear(float timePassed) const;
     
    7373
    7474  // private
    75   WorldEntity* object;
     75  PNode* object;
    7676  Vector* lastPosition;
    7777  Vector* tmpVect;
     
    100100  void animatorBegin();
    101101  void animatorEnd();
    102   void selectObject(WorldEntity* entity);
     102  void selectObject(PNode* entity);
    103103  void addKeyFrame(Vector* point, Quaternion* direction, float time);
    104104  void addKeyFrame(Vector* point, Quaternion* direction, float time, movementMode mode);
     
    132132 
    133133  Vector* tmpVect;                 //<! this is the temporary vector save place -
    134   WorldEntity* workingObject;      //<! this is a pointer to the current working object that has been selected via selectObject()
     134  PNode* workingObject;      //<! this is a pointer to the current working object that has been selected via selectObject()
    135135  Animation3D* workingAnimator;       //<! the animator with which you are currently working
    136136  float deltaT;                    //<! this is a time constant for the movement
    137137
    138   Animation3D* getAnimationFromWorldEntity(WorldEntity* entity);
     138  Animation3D* getAnimationFromPNode(PNode* entity);
    139139
    140140};
Note: See TracChangeset for help on using the changeset viewer.