Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10470 in orxonox.OLD for branches/blink/src


Ignore:
Timestamp:
Jan 29, 2007, 12:41:03 AM (18 years ago)
Author:
stefalie
Message:

blink: blinki moutni works

Location:
branches/blink/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/blink/src/world_entities/effects/blink.cc

    r10445 r10470  
    9191  WorldEntity::loadParams(root);
    9292
    93   LoadParam(root, "position", this, Blink, setPosition);
     93  LoadParam(root, "position", this, Blink, PNode::setAbsCoor);
    9494  LoadParam(root, "size", this, Blink, setSize);
    9595  LoadParam(root, "color", this, Blink, setColor);
     
    105105void Blink::tick(float dt)
    106106{
     107  this->bBoard->setAbsCoor(this->getAbsCoor());
     108
    107109  timer += dt;
    108110
     
    118120
    119121  this->bBoard->colorTexture(Color(color.r(), color.g(), color.b(), this->blinkStr));
     122
     123  PRINTF(0)("hithere\n\n\n\n\n\n");
    120124}
    121125
  • branches/blink/src/world_entities/effects/blink.h

    r10445 r10470  
    3636    void loadParams(const TiXmlElement* root);
    3737
    38     void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); }
     38    //void setAbsCoor(const Vector& absCoor) { this->bBoard->setAbsCoor(absCoor); }
     39    //void setAbsCoor(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); }
     40    //void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); }
    3941    void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); }
    4042    void setPeriod(float t) { this->period = t; }
  • branches/blink/src/world_entities/mount_point.cc

    r10455 r10470  
    176176      this->_mount->setParent( this);
    177177
    178       this->_mount->toList( (OM_LIST)(this->getOMListNumber()+1));
     178      this->_mount->toList((OM_LIST)(this->getOMListNumber()));
    179179    }
    180180    else if( obj->isA( WeaponSlot::staticClassID()))
Note: See TracChangeset for help on using the changeset viewer.