Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 11, 2005, 3:04:04 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some fixes, to PNode and world.

File:
1 edited

Legend:

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

    r6042 r6048  
    4343  // REPARENTING
    4444  PNODE_REPARENT_TO_NULLPARENT         = 0x0010,    //!< Reparents to the NullParent, if the Parent is Removed.
    45   PNODE_REPARENT_TO_PARANTS_PARENT     = 0x0020,    //!< Reparents the Node to the parents (old) parent it the parent gets removed.
     45  PNODE_REPARENT_TO_PARENTS_PARENT     = 0x0020,    //!< Reparents the Node to the parents (old) parent it the parent gets removed.
    4646  PNODE_REPARENT_DELETE_CHILDREN       = 0x0040,    //!< Deletes the Children of the node when This Node is Removed. (Use with care).
    4747  PNODE_REPARENT_KEEP_POSITION         = 0x0080,    //!< Tries to keep the Position if the Node is reparented.
     
    5151  PNODE_PROHIBIT_CHILD_DELETE          = 0x0100,    //!< Prohibits the Children from being deleted if this Node gets deleted.
    5252  PNODE_PROHIBIT_DELETE_WITH_PARENT    = 0x0200,    //!< Prohibits the Node to be deleted if the Parent is. Child will be reparented according to the Repaenting-Rules
    53   PNODE_REPARENT_CHILDREN_ON_DELETE    = 0x0400,    //!< Reparents the Children of the Node to 
     53  PNODE_REPARENT_CHILDREN_ON_DELETE    = 0x0400,    //!< Reparents the Children of the Node to
    5454  PNODE_REPARANT_CHILDREN_ON_REMOVE    = 0x0800,    //!< Reparents the Children of the Node if the Node gets Removed.
    5555
     
    132132  void removeNode();
    133133
    134   void setParent (PNode* parent);
     134  /** @param the new parent of this node */
     135  inline void setParent (PNode* parent) { parent->addChild(this); };
    135136  void setParent (const char* parentName);
    136137  /** @returns the parent of this PNode */
     
    169170  inline Vector getLastAbsCoor() { return this->lastAbsCoordinate; }
    170171
     172  void reparent();
    171173
    172174 private:
Note: See TracChangeset for help on using the changeset viewer.