Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 4:07:49 PM (16 years ago)
Author:
dsommer
Message:

Aufnehmen von festen Item und wieder ablegen

Location:
code/branches/pickups2/src/orxonox/objects/worldentities/pawns
Files:
2 edited

Legend:

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

    r2106 r2324  
    4646
    4747        this->bAlive_ = false;
    48 
     48        this->getPickUp().setPlayer(this);
    4949        this->health_ = 0;
    5050        this->maxHealth_ = 0;
     
    148148        this->spawn();
    149149    }
     150
     151    void Pawn::dropItems()
     152    {
     153        pickUp.eraseAll();
     154    }
    150155}
  • code/branches/pickups2/src/orxonox/objects/worldentities/pawns/Pawn.h

    r2293 r2324  
    7575
    7676            virtual void fire();
     77            virtual void postSpawn();
     78
    7779            inline ShipEquipment& getPickUp()
    7880                {return this->pickUp;}
    79             virtual void postSpawn();
     81
     82            virtual void dropItems();
    8083
    8184        protected:
Note: See TracChangeset for help on using the changeset viewer.