Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 25, 2015, 7:09:11 PM (9 years ago)
Author:
fvultier
Message:
 
Location:
code/branches/fabienHS15/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/orxonox/worldentities/pawns/Pawn.cc

    r10688 r10692  
    560560        else
    561561            return 0;       
    562     }   
     562    }
     563
     564    Munition* Pawn::getMunition(SubclassIdentifier<Munition> * identifier)
     565    {
     566        if (weaponSystem_)
     567        {
     568            return weaponSystem_->getMunition(identifier);
     569        }
     570
     571        return NULL;
     572    }
    563573
    564574    //Tell the Map (RadarViewable), if this is a playership
  • code/branches/fabienHS15/src/orxonox/worldentities/pawns/Pawn.h

    r10688 r10692  
    155155            WeaponPack * getWeaponPack(unsigned int index) const;
    156156            std::vector<WeaponPack *> * getAllWeaponPacks();
     157           
     158            Munition * getMunition(SubclassIdentifier<Munition> * identifier);
    157159
    158160            virtual void addedWeaponPack(WeaponPack* wPack) {}
Note: See TracChangeset for help on using the changeset viewer.