Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2008, 2:44:48 AM (16 years ago)
Author:
landauf
Message:

added two more graphical classes, ParticleEmitter and ParticleSpawner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/worldentities/ControllableEntity.cc

    r2062 r2065  
    9595        XMLPortParam(ControllableEntity, "camerapositiontemplate", setCameraPositionTemplate, getCameraPositionTemkplate, xmlelement, mode);
    9696
    97         XMLPortObject(ControllableEntity, WorldEntity, "camerapositions", addCameraPosition, getCameraPosition, xmlelement, mode);
     97        XMLPortObject(ControllableEntity, CameraPosition, "camerapositions", addCameraPosition, getCameraPosition, xmlelement, mode);
    9898    }
    9999
     
    239239            else if (this->bControlled_)
    240240            {
    241                 COUT(2) << "setting client position" << endl;
     241//                COUT(2) << "setting client position" << endl;
    242242                this->client_velocity_ = this->velocity_;
    243243                this->client_position_ = this->node_->getPosition();
     
    249249    {
    250250        REGISTERSTRING(this->cameraPositionTemplate_, network::direction::toclient);
    251        
    252        
    253         REGISTERDATA(this->client_overwrite_,   network::direction::toserver);
    254         REGISTERDATA(this->server_overwrite_,   network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite));
    255251
    256252        REGISTERDATA(this->server_position_,    network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerPosition));
     
    258254        REGISTERDATA(this->server_orientation_, network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processServerOrientation));
    259255
     256        REGISTERDATA(this->server_overwrite_,   network::direction::toclient, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processOverwrite));
     257        REGISTERDATA(this->client_overwrite_,   network::direction::toserver);
    260258
    261259        REGISTERDATA(this->client_position_,    network::direction::toserver, new network::NetworkCallback<ControllableEntity>(this, &ControllableEntity::processClientPosition));
     
    301299        if (this->server_overwrite_ == this->client_overwrite_)
    302300        {
    303             COUT(2) << "callback: setting client position" << endl;
     301//            COUT(2) << "callback: setting client position" << endl;
    304302            this->node_->setPosition(this->client_position_);
    305303            this->server_position_ = this->client_position_;
    306304        }
    307         else
    308           COUT(2) << "callback: not setting client position" << endl;
     305//        else
     306//          COUT(2) << "callback: not setting client position" << endl;
    309307    }
    310308
     
    458456        else if (this->bControlled_)
    459457        {
    460 //             this->node_->lookAt(target, relativeTo, localDirectionVector);
     458            this->node_->lookAt(target, relativeTo, localDirectionVector);
    461459            this->client_orientation_ = this->node_->getOrientation();
    462460        }
Note: See TracChangeset for help on using the changeset viewer.