Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2006, 4:39:04 PM (18 years ago)
Author:
snellen
Message:

renamed scriptable to scriptclass, made ScriptManager create the script triggers

File:
1 edited

Legend:

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

    r8199 r8202  
    1212{
    1313  public:
    14     ScriptTrigger();
     14    ScriptTrigger(const TiXmlElement* root);
    1515    ~ScriptTrigger();
    1616
     
    2121   
    2222    void setTarget(const std::string& targetName);
    23    
    24     void setTarget(WorldEntity* target) { if(target!=NULL) this->target=target;if(worldEntityIsParent)this->setParent(target); }
    25     void setTargetName(std::string& name){ this->targetName = name; }
     23    void setTarget(WorldEntity* target) { if(target!=NULL) this->target=target; }
     24 
    2625    void setCallOnce(bool call) { this->callOnce = call;}
    2726    void setRadius(float radius) { if(radius>0) this->radius = radius;}
     
    3029    void setFunction(std::string& function){this->functionName = function;}
    3130
    32     std::string getTargetName(){return targetName;}
     31    std::string getTargetName();
    3332
    3433  private:
     
    3635    std::string  parentName;
    3736    WorldEntity* target;
    38     std::string  targetName;
    3937    bool         worldEntityIsParent;
    4038    bool         callOnce;
    41     bool scriptCalled;
    42     float radius;
    43     float delay;
    44     std::string scriptFile;
    45     std::string functionName;
     39    bool         scriptCalled;
     40    float        radius;
     41    float        delay;
     42    std::string  scriptFile;
     43    std::string  functionName;
    4644
    4745    bool callScript;
Note: See TracChangeset for help on using the changeset viewer.