Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 29, 2007, 5:37:25 PM (17 years ago)
Author:
snellen
Message:

Introduced new scripttrigger: space trigger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.h

    r10606 r10607  
    3333
    3434    /// SET MEMBER
    35     void setTarget(const std::string& targetName);
    36     void setTarget(WorldEntity* target) { if(target!=NULL) this->target=target; }
    37     void setTriggerParent(const std::string& name);
    38     void setTriggerRemains(const bool lasts) { this->triggerRemains = lasts; }
     35 
    3936    void setActiveOnCreation(const bool avtive) { this->activeOnCreation = avtive; }
    40     void setInvert(const bool inv) { this->invert = invert; }
    4137    void setDelay(float delay) { this->delay = delay; };
    42     void setRadius(const float radius) { if(radius>0) this->radius = radius; }
    4338    void setScript(const std::string& file);
    4439    void setFunction(const std::string& function){ this->functionName = function;}
    4540    void setDebugDraw(const bool draw) { this->doDebugDraw = draw; }
    4641    void setAddToScript(const bool add) { this->addToScript = add; }
     42    void setTriggerParent(const std::string& name);
    4743
    4844    ///DRAWING
     
    5147  private:
    5248
    53     WorldEntity* target;
    54     bool         triggerRemains;
    5549    bool         activeOnCreation;
    56     bool         invert;
    57     float        radius;
    5850    float        delay;
    5951    Script*      script;
     
    6153    bool         doDebugDraw;
    6254    bool         addToScript;
     55   
    6356    //for internal use
    6457    bool         scriptCalled;
Note: See TracChangeset for help on using the changeset viewer.