Changeset 8285 in orxonox.OLD for branches/script_engine
- Timestamp:
- Jun 8, 2006, 5:53:11 PM (19 years ago)
- Location:
- branches/script_engine/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/script_manager.cc
r8278 r8285 74 74 LOAD_PARAM_START_CYCLE(triggers, object); 75 75 { 76 new ScriptTrigger(object); 76 new ScriptTrigger(object);PRINTF(0)("test output from createtriggers\n"); 77 77 } 78 78 LOAD_PARAM_END_CYCLE(object); -
branches/script_engine/src/world_entities/script_trigger.cc
r8271 r8285 11 11 ScriptTrigger::ScriptTrigger(const TiXmlElement* root) 12 12 { 13 this->setClassID(CL_SCRIPT_TRIGGER, "ScriptTrigger"); 14 this->toList(OM_COMMON); 15 13 16 scriptCalled = false; 14 17 scriptIsOk = false; 15 18 loadParams(root); 16 19 17 20 printf("scripttrigger generated\n"); 18 21 } 19 22 … … 89 92 void ScriptTrigger::tick(float timestep) 90 93 { 91 printf("SCRIPTTRIGGER: tick called\n");94 92 95 if((this->getAbsDirV()-target->getAbsDirV()).len() < radius) 93 96 { 97 printf("SCRIPTTRIGGER: condition met\n"); 94 98 if(!callOnce) 95 99 {
Note: See TracChangeset
for help on using the changeset viewer.