Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 4:53:34 PM (8 years ago)
Author:
fvultier
Message:

merged discharger, thats the last one

Location:
code/branches/presentationFS16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS16

  • code/branches/presentationFS16/src/orxonox/worldentities/ControllableEntity.cc

    r11071 r11208  
    4949    RegisterClass(ControllableEntity);
    5050
    51     registerMemberNetworkFunction( ControllableEntity, fire );
     51    registerMemberNetworkFunction( ControllableEntity, push );
    5252    registerMemberNetworkFunction( ControllableEntity, setTargetInternal );
    5353
     
    299299    }
    300300
    301     void ControllableEntity::fire(unsigned int firemode)
     301    void ControllableEntity::push(unsigned int firemode)
    302302    {
    303303        if(GameMode::isMaster())
    304304        {
    305             this->fired(firemode);
     305            this->pushed(firemode);
    306306        }
    307307        else
    308308        {
    309             callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode);
     309            callMemberNetworkFunction(&ControllableEntity::push, this->getObjectID(), 0, firemode);
     310        }
     311    }
     312
     313    void ControllableEntity::release(unsigned int firemode)
     314    {
     315        if(GameMode::isMaster())
     316        {
     317            this->released(firemode);
     318        }
     319        else
     320        {
     321            callMemberNetworkFunction(&ControllableEntity::release, this->getObjectID(), 0, firemode);
    310322        }
    311323    }
Note: See TracChangeset for help on using the changeset viewer.