Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 16, 2010, 12:37:09 PM (14 years ago)
Author:
dafrick
Message:

Documenting and cleanup.

Location:
code/trunk/src/orxonox/worldentities/pawns
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.h

    r7163 r7547  
    128128                { return this->aimPosition_; }
    129129
    130             virtual const Vector3& getCarrierPosition(void)
     130            virtual const Vector3& getCarrierPosition(void) const
    131131                { return this->getWorldPosition(); };
    132132
     
    144144            bool bAlive_;
    145145
    146             virtual std::vector<PickupCarrier*>* getCarrierChildren(void)
     146            virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const
    147147                { return new std::vector<PickupCarrier*>(); }
    148             virtual PickupCarrier* getCarrierParent(void)
     148            virtual PickupCarrier* getCarrierParent(void) const
    149149                { return NULL; }
    150150
  • code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc

    r6711 r7547  
    221221    }
    222222
    223     std::vector<PickupCarrier*>* SpaceShip::getCarrierChildren(void)
     223    std::vector<PickupCarrier*>* SpaceShip::getCarrierChildren(void) const
    224224    {
    225225        std::vector<PickupCarrier*>* list = new std::vector<PickupCarrier*>();
  • code/trunk/src/orxonox/worldentities/pawns/SpaceShip.h

    r7163 r7547  
    8585
    8686        protected:
    87             virtual std::vector<PickupCarrier*>* getCarrierChildren(void);
     87            virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const;
    8888            bool bInvertYAxis_;
    8989
Note: See TracChangeset for help on using the changeset viewer.