Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2006, 8:51:17 AM (19 years ago)
Author:
snellen
Message:

script_trigger: added possibility to set debug draw in the xml file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/world_entities/script_trigger.h

    r8271 r8304  
    3434    void setScript(const std::string& file);
    3535    void setFunction(const std::string& function){ this->functionName = function; }
    36    
     36    void setDebugDraw(const bool draw) { this->debugDraw = draw; }
     37
    3738    ///DRAWING
    38     void draw()const{this->debugDraw();};
     39    void draw()const{if(debugDraw)this->debugDraw();};
    3940
    4041  private:
     
    4647    Script*      script;
    4748    std::string  functionName;
     49    bool         debugDraw;
    4850
    4951    //for internal use
Note: See TracChangeset for help on using the changeset viewer.