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/items
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/items/Engine.cc

    r7163 r7547  
    248248    }
    249249
    250     PickupCarrier* Engine::getCarrierParent(void)
     250    PickupCarrier* Engine::getCarrierParent(void) const
    251251    {
    252252        return this->ship_;
    253253    }
    254254
    255     const Vector3& Engine::getCarrierPosition(void)
     255    const Vector3& Engine::getCarrierPosition(void) const
    256256    {
    257257        return this->ship_->getWorldPosition();
  • code/trunk/src/orxonox/items/Engine.h

    r7163 r7547  
    112112            virtual const Vector3& getDirection() const;
    113113
    114             virtual const Vector3& getCarrierPosition(void);
     114            virtual const Vector3& getCarrierPosition(void) const;
    115115
    116116            //TODO: Move to protected or private. How?
     
    121121
    122122        protected:
    123             virtual std::vector<PickupCarrier*>* getCarrierChildren(void)
     123            virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const
    124124                { return new std::vector<PickupCarrier*>(); }
    125             virtual PickupCarrier* getCarrierParent(void);
     125            virtual PickupCarrier* getCarrierParent(void) const;
    126126
    127127        private:
Note: See TracChangeset for help on using the changeset viewer.