Changeset 8402 in orxonox.OLD
- Timestamp:
- Jun 14, 2006, 5:10:53 PM (18 years ago)
- Location:
- branches/script_engine/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/script_class.h
r8401 r8402 20 20 #define CREATE_SCRIPTABLE_CLASS(CLASS_NAME, CLASS_ID, SCRIPT_METHODS) \ 21 21 tScriptClass<CLASS_NAME> global_##CLASS_NAME##_ScriptableClass(#CLASS_NAME, CLASS_ID, (new ScriptMethod)->SCRIPT_METHODS) 22 23 22 24 23 -
branches/script_engine/src/world_entities/script_trigger.cc
r8395 r8402 1 1 //for testing 2 2 #include "luaincl.h" 3 3 4 #include "script_trigger.h" 4 5 #include "class_list.h" … … 9 10 10 11 12 /** 13 * Constructs a new ScriptTrigger. 14 * @param root the xml element to load the parameters from. 15 * 16 */ 11 17 ScriptTrigger::ScriptTrigger(const TiXmlElement* root) 12 18 { … … 21 27 } 22 28 29 /** 30 * Deletes the ScriptTrigger. 31 * 32 */ 23 33 ScriptTrigger::~ScriptTrigger() 24 34 { … … 26 36 } 27 37 38 /** 39 * Reads the values from the tml element and sets them. 40 * @param root the xml element to load the parameters from. 41 * 42 */ 28 43 void ScriptTrigger::loadParams(const TiXmlElement* root) 29 44 { … … 64 79 65 80 81 /** 82 * Sets the target(a world entity) of the ScriptTrigger. If the distance between the target and this trigger is smaller than the radius, the script gets triggered. 83 * @param target The worldentity that the script supervises. 84 */ 66 85 void ScriptTrigger::setTarget(const std::string& target) 67 86 {
Note: See TracChangeset
for help on using the changeset viewer.