Changeset 10611 in orxonox.OLD for branches/scriptimprovements/src
- Timestamp:
- Mar 29, 2007, 9:16:43 PM (18 years ago)
- Location:
- branches/scriptimprovements/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptimprovements/src/lib/script_engine/script.cc
r10584 r10611 407 407 408 408 //this->registerClass(std::string("Vector")); 409 this->registerClass("ScriptTrigger"); 409 this->registerClass("SpaceTrigger"); 410 this->registerClass("TickTrigger"); 410 411 // this->registerClass("AttractorMine"); 411 412 -
branches/scriptimprovements/src/lib/script_engine/script_manager.cc
r10606 r10611 28 28 #include "luaincl.h" 29 29 #include "loading/load_param_xml.h" 30 #include "util/loading/factory.h" 30 31 31 32 … … 85 86 void ScriptManager::createTriggers(const TiXmlElement* triggers) 86 87 { 88 87 89 LOAD_PARAM_START_CYCLE(triggers, object); 88 90 { 89 new ScriptTrigger(object); 91 Factory::fabricate(object); 92 // new ScriptTrigger(object); 90 93 } 91 94 LOAD_PARAM_END_CYCLE(object); -
branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.h
r10609 r10611 28 28 29 29 /// DO WORK 30 virtual void tick(float timestep) ;30 virtual void tick(float timestep){} 31 31 virtual void executeAction(float timestep); 32 32 void testScriptingFramework(); … … 51 51 52 52 //for internal use 53 bool executionStopped; // true when something goes wrong and the trigger ha sto be stopped53 bool executionStopped; // true when something goes wrong and the trigger had to be stopped 54 54 int returnCount; //TODO: set return count correctly 55 55 -
branches/scriptimprovements/src/world_entities/script_triggers/space_trigger.cc
r10610 r10611 19 19 20 20 ObjectListDefinition(SpaceTrigger); 21 CREATE_FACTORY(SpaceTrigger); 21 22 22 23 CREATE_SCRIPTABLE_CLASS(SpaceTrigger, -
branches/scriptimprovements/src/world_entities/script_triggers/tick_trigger.cc
r10610 r10611 19 19 20 20 ObjectListDefinition(TickTrigger); 21 CREATE_FACTORY(TickTrigger); 21 22 22 23 CREATE_SCRIPTABLE_CLASS(TickTrigger,
Note: See TracChangeset
for help on using the changeset viewer.