Changeset 10491 in orxonox.OLD for trunk/src/world_entities/effects/blink.cc
- Timestamp:
- Jan 30, 2007, 1:13:28 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/blink.cc
r10445 r10491 38 38 // calculation of the symbolTime 39 39 this->symbolTime = this->period / this->blinkSequence.length(); 40 //PRINTF(0)("\n\n\nperiod: %f\n\n\n", this->period); 40 41 } 41 42 … … 80 81 this->timer = 0; 81 82 this->seqCounter = 0; 83 84 // ugly hack continued 85 this->setCoor = true; 82 86 } 83 87 … … 91 95 WorldEntity::loadParams(root); 92 96 93 LoadParam(root, "position", this, Blink, setPosition);97 LoadParam(root, "position", this, Blink, PNode::setAbsCoor); 94 98 LoadParam(root, "size", this, Blink, setSize); 95 99 LoadParam(root, "color", this, Blink, setColor); … … 105 109 void Blink::tick(float dt) 106 110 { 111 // ugly hack continued, set absCoor only once 112 if(this->setCoor) { 113 this->bBoard->setAbsCoor(this->getAbsCoor()); 114 this->setCoor = false; 115 this->symbolTime = this->period / this->blinkSequence.length(); 116 } 117 107 118 timer += dt; 108 119
Note: See TracChangeset
for help on using the changeset viewer.