Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2016, 4:02:00 PM (9 years ago)
Author:
sagerj
Message:

today I got pawn'ed

Location:
code/branches/sagerjFS16/src/orxonox/worldentities
Files:
3 edited

Legend:

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

    r11164 r11166  
    303303        if(GameMode::isMaster())
    304304        {
    305             orxout() << "f CE IF " << firemode << endl;
     305            orxout() << "fire ce if " << firemode << endl;
    306306            this->fired(firemode);
    307307        }
    308308        else
    309309        {
    310             orxout() << "f CE EL " << firemode << endl;
     310            orxout() << "fire ce else " << firemode << endl;
    311311            callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode);
    312312        }
     
    317317        if(GameMode::isMaster())
    318318        {
    319             orxout() << "r CE IF " << firemode << endl;
     319            orxout() << "release ce if " << firemode << endl;
    320320            this->released(firemode);
    321321        }
    322322        else
    323323        {
    324             orxout() << "r CE EL " << firemode << endl;
     324            orxout() << "release ce else " << firemode << endl;
    325325            callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode);
    326326        }
  • code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.cc

    r11099 r11166  
    430430    void Pawn::fired(unsigned int firemode)
    431431    {
     432        orxout() << "fired pawn " << firemode << endl;
    432433        if (this->weaponSystem_)
    433434            this->weaponSystem_->fire(firemode);
     435    }
     436
     437    void Pawn::released(unsigned int firemode)
     438    {
     439        orxout() << "released pawn " << firemode << endl;
     440        if (this->weaponSystem_)
     441            this->weaponSystem_->release(firemode);
    434442    }
    435443
  • code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.h

    r11071 r11166  
    158158
    159159            virtual void fired(unsigned int firemode) override;
     160            virtual void released(unsigned int firemode) override;
    160161            virtual void postSpawn();
    161162
Note: See TracChangeset for help on using the changeset viewer.