Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2005, 12:43:39 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: loadParam functions implemented

File:
1 edited

Legend:

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

    r4856 r4858  
    1111// FORWARD DECLARATION
    1212class PNode;
     13class TiXmlElement;
    1314
    1415//!< An enumerator defining the Depth of a 2D-element.
     
    4849    virtual ~Element2D();
    4950
     51    void init();
     52    void loadParams(const TiXmlElement* root);
     53
    5054    /** @param xCoord the xCoordinate @param yCoord the y-Coordinate. These coordinates are Relative */
    5155    inline void setPosition2D(int xCoord, int yCoord) { this->relPos2D[0] = xCoord; this->relPos2D[1] = yCoord; };
     
    5458    /** @param alignment the new Alignment of the 2D-Element */
    5559    inline void setAlignment(E2D_ALIGNMENT alignment) { this->alignment = alignment; };
     60    void setAlignment(const char* alignment);
    5661    /** @param layer the Layer this is drawn on */
    5762    inline void setLayer(E2DLayer layer) { this->layer = layer; };
     63    void setLayer(const char* layer);
    5864    /** @param visible true if the Element should be visible false otherwise (will not be rendered) */
    5965    inline void setVisibility(bool visible) { this->visible = visible; };
    6066    /** @param bindNode the Node this 2D-element should follow. if NULL the Element will not follow anything */
    6167    inline void setBindNode(const PNode* bindNode) { this->bindNode = bindNode; };
     68    void setBindNode(const char* bindNode);
    6269
    6370    /** @returns the visibility state */
    6471    inline bool isVisible() { return this->visible; };
    6572
    66     void positioning();
    6773    virtual void tick(float dt);
    6874    virtual void draw() const = NULL;
    6975
    70   private:
    71     void init();
     76  protected:
     77    void positioning();
    7278
    7379  protected:
Note: See TracChangeset for help on using the changeset viewer.