Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 5:33:25 PM (19 years ago)
Author:
snellen
Message:

helicopter scripted

File:
1 edited

Legend:

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

    r8408 r8485  
    2222    /// DO WORK
    2323    virtual void tick(float timestep);
    24     virtual void executeAction();
     24    virtual void executeAction(float timestep);
    2525    void testScriptingFramework();
    2626
     
    3030    void setTriggerParent(const std::string& name);
    3131    void setCallOnce(const bool call) { this->callOnce = call; }
     32    void setTriggerLasts(const bool lasts) { this->triggerLasts = lasts; }
     33    void setInvert(const bool inv) { this->invert = invert; }
    3234    void setRadius(const float radius) { if(radius>0) this->radius = radius; }
    3335    void setDelay(const float time){if(delay>0) this->delay = delay; }
    3436    void setScript(const std::string& file);
    35     void setFunction(const std::string& function){ this->functionName = function; }
     37    void setFunction(const std::string& function){ this->functionName = function;}
    3638    void setDebugDraw(const bool draw) { this->doDebugDraw = draw; }
    3739
     
    4345    WorldEntity* target;
    4446    bool         callOnce;
     47    bool         triggerLasts;
     48    bool         invert;
    4549    float        radius;
    4650    float        delay;
     
    5256    bool         scriptCalled;
    5357    bool         scriptIsOk;
     58    bool         actionFinished;
     59    int          returnCount;
    5460
    5561};
Note: See TracChangeset for help on using the changeset viewer.