Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8285 in orxonox.OLD for branches/script_engine/src/world_entities


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

added debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.