Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 4:47:39 PM (9 years ago)
Author:
sagerj
Message:

everything beneath weaponmode changed to push/release - wm modified only need to implement timer/ticker

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

Legend:

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

    r11170 r11174  
    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
  • code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.h

    r11164 r11174  
    9696                { this->rotateRoll(Vector2(value, 0)); }
    9797
    98             void fire(unsigned int firemode);
     98            void push(unsigned int firemode);
    9999            void release(unsigned int firemode);
    100             virtual void fired(unsigned int firemode) {}
     100            virtual void pushed(unsigned int firemode) {}
    101101            virtual void released(unsigned int firemode) {}
    102102            virtual void reload() {}
  • code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.cc

    r11170 r11174  
    428428    */
    429429
    430     void Pawn::fired(unsigned int firemode)
    431     {
    432         if (this->weaponSystem_)
    433             this->weaponSystem_->fire(firemode);
     430    void Pawn::pushed(unsigned int firemode)
     431    {
     432        if (this->weaponSystem_)
     433            this->weaponSystem_->push(firemode);
    434434    }
    435435
  • code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.h

    r11166 r11174  
    157157            virtual void kill();
    158158
    159             virtual void fired(unsigned int firemode) override;
     159            virtual void pushed(unsigned int firemode) override;
    160160            virtual void released(unsigned int firemode) override;
    161161            virtual void postSpawn();
Note: See TracChangeset for help on using the changeset viewer.