Changeset 10609 in orxonox.OLD for branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.h
- Timestamp:
- Mar 29, 2007, 6:08:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.h
r10608 r10609 33 33 34 34 /// SET MEMBER 35 36 void setActiveOnCreation(const bool avtive) { this->activeOnCreation = avtive; }37 void setDelay(float delay) { this->delay = delay; };38 35 void setScript(const std::string& file); 39 36 void setFunction(const std::string& function){ this->functionName = function;} … … 41 38 void setAddToScript(const bool add) { this->addToScript = add; } 42 39 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 ///POLLING49 50 inline bool getScriptIsOk(){ return scriptIsOk; }51 inline bool getScriptCalled(){ return scriptCalled; }52 inline bool getScriptFinished(){ return scriptFinished; }53 40 54 41 … … 58 45 private: 59 46 60 bool activeOnCreation;61 float delay;62 47 Script* script; 63 48 std::string functionName; … … 66 51 67 52 //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 68 58 bool scriptCalled; 69 59 bool scriptIsOk; 70 bool executionStopped; // true when something goes wrong and the trigger has to be stopped71 60 bool scriptFinished; 72 int returnCount; //TODO: set return count correctly73 61 74 62 };
Note: See TracChangeset
for help on using the changeset viewer.