Changeset 8202 in orxonox.OLD for branches/script_engine/src/lib/script_engine/script_trigger.h
- Timestamp:
- Jun 7, 2006, 4:39:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/script_trigger.h
r8199 r8202 12 12 { 13 13 public: 14 ScriptTrigger( );14 ScriptTrigger(const TiXmlElement* root); 15 15 ~ScriptTrigger(); 16 16 … … 21 21 22 22 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 26 25 void setCallOnce(bool call) { this->callOnce = call;} 27 26 void setRadius(float radius) { if(radius>0) this->radius = radius;} … … 30 29 void setFunction(std::string& function){this->functionName = function;} 31 30 32 std::string getTargetName() {return targetName;}31 std::string getTargetName(); 33 32 34 33 private: … … 36 35 std::string parentName; 37 36 WorldEntity* target; 38 std::string targetName;39 37 bool worldEntityIsParent; 40 38 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; 46 44 47 45 bool callScript;
Note: See TracChangeset
for help on using the changeset viewer.