Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3248 in orxonox.OLD for orxonox/branches/parenting/src/p_node.h


Ignore:
Timestamp:
Dec 22, 2004, 3:28:14 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: defined all function/variables now will have to implement them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/p_node.h

    r3247 r3248  
    2424#include "stdincl.h"
    2525
    26 typedef enum parentingMode {};
     26class PNode; /* forward decleration, so that parentEntry has access to PNode */
     27
     28typedef enum parentingMode {MOVEMENT = 0, ROTATION, ALL};
     29#define DEFAULT_MODE ALL
    2730
    2831class PNode {
     
    3235  ~PNode ();
    3336
     37  parentingMode mode;
     38
    3439  Vector getRelCoor ();
    3540  void setRelCoor (Vector relCoord);
    3641  Vector getAbsCoor ();
    3742  void setAbsCoor (Vector absCoord);
     43  void shiftCoor (Vector shift);
    3844
    3945  Quaternion getRelDir ();
     
    4147  Quaternion getAbsDir ();
    4248  void setAbsDir (Quaternion absDir);
     49  void shiftDir (Quaternion shift);
    4350
    4451  void addChild (PNode* pNode);
     52  void addChild (PNode* pNode, parentingMode mode);
    4553  void removeChild (PNode* pNode);
    4654  void setParent (PNode* parent);
     55  void update ();
    4756
    4857 private:
Note: See TracChangeset for help on using the changeset viewer.