Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2008, 3:26:55 AM (16 years ago)
Author:
landauf
Message:

added camerapositions

Location:
code/branches/objecthierarchy/src/orxonox/objects/infos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/infos/HumanPlayer.cc

    r2041 r2042  
    5454        this->setConfigValues();
    5555        this->registerVariables();
    56 
    57 COUT(0) << this->getObjectID() << ": HumanPlayer created" << std::endl;
    58         network::Synchronisable* temp = dynamic_cast<network::Synchronisable*>(creator);
    59         if (temp)
    60         {
    61 COUT(0) << this->getObjectID() << ": CreatorID: " << temp->getObjectID() << std::endl;
    62         }
    63         else
    64         {
    65 COUT(0) << this->getObjectID() << ": Creator is no Synchronisable" << std::endl;
    66         }
    67     unsigned int creatorID = network::OBJECTID_UNKNOWN;
    68     searchcreatorID:
    69     if (creator)
    70     {
    71         if (creator->isA(Class(Synchronisable)))
    72         {
    73             Synchronisable* synchronisable_creator = dynamic_cast<Synchronisable*>(creator);
    74             creatorID = synchronisable_creator->getObjectID();
    75         }
    76         else if (creator != creator->getCreator())
    77         {
    78             creator = creator->getCreator();
    79             goto searchcreatorID;
    80         }
    81     }
    82 COUT(0) << this->getObjectID() << ": ### tranmitted creatorID: " << creatorID << std::endl;
    8356    }
    8457
    8558    HumanPlayer::~HumanPlayer()
    8659    {
    87 COUT(0) << this->getObjectID() << ": HumanPlayer destroyed" << std::endl;
    8860    }
    8961
     
    12092    void HumanPlayer::networkcallback_clientIDchanged()
    12193    {
    122 COUT(0) << this->getObjectID() << ": PI: clientID changed to " << this->clientID_ << std::endl;
    12394        if (this->clientID_ == network::Host::getPlayerID())
    12495        {
    125 COUT(0) << this->getObjectID() << ": PI: it's my clientID" << std::endl;
    12696            this->bLocalPlayer_ = true;
    12797            this->synchronize_nick_ = this->nick_;
     
    12999
    130100            if (!Core::isMaster())
    131             {
    132101                this->setObjectMode(network::direction::bidirectional);
    133 COUT(0) << this->getObjectID() << ": PI: set objectmode to bidirectional" << std::endl;
    134             }
    135102            else
    136103                this->setName(this->nick_);
     
    143110    {
    144111        this->client_ready_ = true;
    145 COUT(0) << this->getObjectID() << ": PI: server ready, client set ready too" << std::endl;
    146112    }
    147113
    148114    void HumanPlayer::networkcallback_client_ready()
    149115    {
    150 COUT(0) << this->getObjectID() << ": PI: client ready" << std::endl;
    151116        if (this->getGametype())
    152         {
    153 COUT(0) << this->getObjectID() << ": PI: adding client to gametype" << std::endl;
    154117            this->getGametype()->playerEntered(this);
    155         }
    156118    }
    157119
     
    173135    void HumanPlayer::setClientID(unsigned int clientID)
    174136    {
    175 COUT(0) << this->getObjectID() << ": PI: set clientID to " << clientID << std::endl;
    176137        this->clientID_ = clientID;
    177138        this->networkcallback_clientIDchanged();
  • code/branches/objecthierarchy/src/orxonox/objects/infos/PlayerInfo.cc

    r2041 r2042  
    128128            this->controllableEntityID_ = network::OBJECTID_UNKNOWN;
    129129        }
    130 COUT(0) << this->getObjectID() << ": PI: start control" << std::endl;
     130
    131131        if (this->controller_)
    132132            this->controller_->setControllableEntity(entity);
Note: See TracChangeset for help on using the changeset viewer.