Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6517


Ignore:
Timestamp:
Mar 12, 2010, 8:42:18 AM (14 years ago)
Author:
dafrick
Message:

TestPickup now more universal, as it accepts all PickupCarriers as its target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/modules/pickup/items/TestPickup.cc

    r6512 r6517  
    3030#include "core/XMLPort.h"
    3131#include "interfaces/PickupCarrier.h"
    32 #include "worldentities/pawns/Pawn.h"
    3332#include "pickup/PickupIdentifier.h"
    3433
     
    4746        RegisterObject(TestPickup);
    4847       
    49         this->addTarget(ClassIdentifier<Pawn>::getIdentifier());
     48        this->addTarget(ClassIdentifier<PickupCarrier>::getIdentifier());
    5049        this->setActivationTypeDirect(pickupActivationType::immediate);
    5150        this->setDurationTypeDirect(pickupDurationType::once);
Note: See TracChangeset for help on using the changeset viewer.