Changeset 10607 in orxonox.OLD for branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.h
- Timestamp:
- Mar 29, 2007, 5:37:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.h
r10606 r10607 33 33 34 34 /// 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 39 36 void setActiveOnCreation(const bool avtive) { this->activeOnCreation = avtive; } 40 void setInvert(const bool inv) { this->invert = invert; }41 37 void setDelay(float delay) { this->delay = delay; }; 42 void setRadius(const float radius) { if(radius>0) this->radius = radius; }43 38 void setScript(const std::string& file); 44 39 void setFunction(const std::string& function){ this->functionName = function;} 45 40 void setDebugDraw(const bool draw) { this->doDebugDraw = draw; } 46 41 void setAddToScript(const bool add) { this->addToScript = add; } 42 void setTriggerParent(const std::string& name); 47 43 48 44 ///DRAWING … … 51 47 private: 52 48 53 WorldEntity* target;54 bool triggerRemains;55 49 bool activeOnCreation; 56 bool invert;57 float radius;58 50 float delay; 59 51 Script* script; … … 61 53 bool doDebugDraw; 62 54 bool addToScript; 55 63 56 //for internal use 64 57 bool scriptCalled;
Note: See TracChangeset
for help on using the changeset viewer.