Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 29, 2007, 6:08:23 PM (17 years ago)
Author:
snellen
Message:

added tick trigger which always calles the script

File:
1 edited

Legend:

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

    r10608 r10609  
    3333
    3434    /// SET MEMBER
    35  
    36     void setActiveOnCreation(const bool avtive) { this->activeOnCreation = avtive; }
    37     void setDelay(float delay) { this->delay = delay; };
    3835    void setScript(const std::string& file);
    3936    void setFunction(const std::string& function){ this->functionName = function;}
     
    4138    void setAddToScript(const bool add) { this->addToScript = add; }
    4239    void setTriggerParent(const std::string& name);
    43    
    44     inline void setScriptIsOk(bool ok){ scriptIsOk = ok ; }
    45     inline void setScriptCalled(bool called){ scriptCalled = called; }
    46     inline void setScriptFinished(bool finished){ scriptFinished = finished; }
    47    
    48     ///POLLING
    49 
    50     inline bool getScriptIsOk(){ return scriptIsOk; }
    51     inline bool getScriptCalled(){ return scriptCalled; }
    52     inline bool getScriptFinished(){ return scriptFinished; }
    5340   
    5441   
     
    5845  private:
    5946
    60     bool         activeOnCreation;
    61     float        delay;
    6247    Script*      script;
    6348    std::string  functionName;
     
    6651   
    6752    //for internal use
     53    bool         executionStopped;   // true when something goes wrong and the trigger has to be stopped
     54    int          returnCount;        //TODO: set return count correctly
     55   
     56  protected:
     57   
    6858    bool         scriptCalled;
    6959    bool         scriptIsOk;
    70     bool         executionStopped;   // true when something goes wrong and the trigger has to be stopped
    7160    bool         scriptFinished;
    72     int          returnCount;        //TODO: set return count correctly
    7361
    7462};
Note: See TracChangeset for help on using the changeset viewer.