Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5775 in orxonox.OLD for trunk/src/lib/graphics/render2D/element_2d.h


Ignore:
Timestamp:
Nov 25, 2005, 1:54:33 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: stl::list in Element2D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.h

    r5417 r5775  
    1010
    1111#include "vector.h"
     12#include <list>
    1213
    1314// FORWARD DECLARATION
    1415class PNode;
    1516class TiXmlElement;
    16 template<class T> class tList;
    1717
    1818//!< An enumerator defining the Depth of a 2D-element.
     
    171171    inline Element2D* getParent2D () const { return this->parent; };
    172172    /** @returns the List of Children of this Element2D */
    173     inline const tList<Element2D>* getChildren2D() const { return this->children; };
     173    inline const std::list<Element2D*>& getChildren2D() const { return this->children; };
    174174
    175175    void setParentSoft2D(Element2D* parentNode, float bias = 1.0);
     
    234234
    235235    Element2D*              parent;             //!< a pointer to the parent node
    236     tList<Element2D>*       children;           //!< list of the children of this Element2D
     236    std::list<Element2D*>   children;           //!< list of the children of this Element2D
    237237
    238238    unsigned int            parentMode;         //!< the mode of the binding
Note: See TracChangeset for help on using the changeset viewer.