Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8285 in orxonox.OLD


Ignore:
Timestamp:
Jun 8, 2006, 5:53:11 PM (18 years ago)
Author:
snellen
Message:

added debug output

Location:
branches/script_engine/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script_manager.cc

    r8278 r8285  
    7474  LOAD_PARAM_START_CYCLE(triggers, object);
    7575  {
    76     new ScriptTrigger(object);
     76    new ScriptTrigger(object);PRINTF(0)("test output from createtriggers\n");
    7777  }
    7878  LOAD_PARAM_END_CYCLE(object);
  • branches/script_engine/src/world_entities/script_trigger.cc

    r8271 r8285  
    1111ScriptTrigger::ScriptTrigger(const TiXmlElement* root)
    1212{
     13  this->setClassID(CL_SCRIPT_TRIGGER, "ScriptTrigger");
     14  this->toList(OM_COMMON);
     15 
    1316  scriptCalled = false;
    1417  scriptIsOk = false;
    1518  loadParams(root);
    1619
    17 
     20  printf("scripttrigger generated\n");
    1821}
    1922
     
    8992void ScriptTrigger::tick(float timestep)
    9093{
    91   printf("SCRIPTTRIGGER: tick called\n");
     94 
    9295 if((this->getAbsDirV()-target->getAbsDirV()).len() < radius)
    9396 {
     97   printf("SCRIPTTRIGGER: condition met\n");
    9498  if(!callOnce)
    9599   {
Note: See TracChangeset for help on using the changeset viewer.