Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5770 in orxonox.OLD for trunk/src/lib/coord/p_node.h


Ignore:
Timestamp:
Nov 25, 2005, 12:40:36 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: PNode is now std::list-conform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.h

    r5769 r5770  
    2121#include "base_object.h"
    2222#include "vector.h"
     23#include <list>
    2324
    2425// FORWARD DECLARATION
     
    155156
    156157 private:
    157   bool            bRelCoorChanged;    //!< If Relative Coordinate has changed since last time we checked
    158   bool            bRelDirChanged;     //!< If Relative Direction has changed since last time we checked
     158  bool               bRelCoorChanged;    //!< If Relative Coordinate has changed since last time we checked
     159  bool               bRelDirChanged;     //!< If Relative Direction has changed since last time we checked
    159160
    160   Vector          relCoordinate;      //!< coordinates relative to the parent
    161   Vector          absCoordinate;      //!< absolute coordinates in the world ( from (0,0,0) )
    162   Quaternion      relDirection;       //!< direction relative to the parent
    163   Quaternion      absDirection;       //!< absolute direvtion in the world ( from (0,0,1) )
     161  Vector             relCoordinate;      //!< coordinates relative to the parent
     162  Vector             absCoordinate;      //!< absolute coordinates in the world ( from (0,0,0) )
     163  Quaternion         relDirection;       //!< direction relative to the parent
     164  Quaternion         absDirection;       //!< absolute direvtion in the world ( from (0,0,1) )
    164165
    165   Vector          prevRelCoordinate;  //!< The last Relative Coordinate from the last update-Cycle.
    166   Vector          lastAbsCoordinate;  //!< this is used for speedcalculation, it stores the last coordinate
    167   Quaternion      prevRelDirection;   //!< The last Relative Direciton from the last update-Cycle.
    168 //  Quaternion      lastAbsDirection;
     166  Vector             prevRelCoordinate;  //!< The last Relative Coordinate from the last update-Cycle.
     167  Vector             lastAbsCoordinate;  //!< this is used for speedcalculation, it stores the last coordinate
     168  Quaternion         prevRelDirection;   //!< The last Relative Direciton from the last update-Cycle.
     169//  Quaternion         lastAbsDirection;
    169170
    170   Vector          velocity;           //!< Saves the velocity.
     171  Vector             velocity;           //!< Saves the velocity.
    171172
    172   Vector*         toCoordinate;       //!< a position to which to iterate. (This is used in conjunction with setParentSoft.and set*CoorSoft)
    173   Quaternion*     toDirection;        //!< a direction to which to iterate. (This is used in conjunction with setParentSoft and set*DirSoft)
    174   float           bias;               //!< how fast to iterate to the given position (default is 1)
     173  Vector*            toCoordinate;       //!< a position to which to iterate. (This is used in conjunction with setParentSoft.and set*CoorSoft)
     174  Quaternion*        toDirection;        //!< a direction to which to iterate. (This is used in conjunction with setParentSoft and set*DirSoft)
     175  float              bias;               //!< how fast to iterate to the given position (default is 1)
    175176
    176   PNode*          parent;             //!< a pointer to the parent node
    177   tList<PNode>*   children;           //!< list of the children of this PNode
     177  PNode*             parent;             //!< a pointer to the parent node
     178  std::list<PNode*>  children;           //!< list of the children of this PNode
    178179
    179   unsigned int    parentMode;         //!< the mode of the binding
     180  unsigned int       parentMode;         //!< the mode of the binding
    180181};
    181182
Note: See TracChangeset for help on using the changeset viewer.