Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/modules/pickup/PickupRepresentation.cc

    r9667 r10692  
    187187        Billboard* icon = new Billboard(spawner->getContext());
    188188        icon->setColour(ColourValue(0.89f, 0.79f, 0.08f));
    189         icon->setMaterial("asterisk");
     189        icon->setMaterial("Unknown");
    190190        icon->setScale(0.5);
    191191        sphere->attach(icon);
  • code/branches/fabienHS15/src/modules/pickup/items/CMakeLists.txt

    r9348 r10692  
    88  ShrinkPickup.cc
    99  DamageBoostPickup.cc
     10  MunitionPickup.cc
    1011)
  • code/branches/fabienHS15/src/modules/pickup/items/DronePickup.h

    r9667 r10692  
    4343#include "tools/interfaces/Tickable.h"
    4444
    45 namespace orxonox {
     45namespace orxonox
     46{
    4647
    4748    /**
     
    8081            std::string droneTemplate_; //!< The name of the template, based upon which the Drone is created.
    8182            Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails.
    82 
    83 
    84 
    8583    };
    8684}
  • 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.