Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 4:44:02 PM (14 years ago)
Author:
gasserlu
Message:

drone shootingRange implemented

Location:
code/branches/presentation3/src/orxonox/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/worldentities/Drone.cc

    r7039 r7060  
    7979        XMLPortParam(Drone, "maxDistanceToOwner_", setMaxDistanceToOwner, getMaxDistanceToOwner, xmlelement, mode);
    8080        XMLPortParam(Drone, "minDistanceToOwner_", setMinDistanceToOwner, getMinDistanceToOwner, xmlelement, mode);
     81        XMLPortParam(Drone, "maxShootingRange_", setMaxShootingRange, getMaxShootingRange, xmlelement, mode);
    8182    }
    8283
  • code/branches/presentation3/src/orxonox/worldentities/Drone.h

    r7039 r7060  
    114114            inline void setMinDistanceToOwner( float distance)
    115115                { this->minDistanceToOwner_=distance; }
     116            inline void setMaxShootingRange( float distance)
     117                { this->maxShootingRange_=distance; }
    116118
    117119           
     
    130132            inline float getMinDistanceToOwner()
    131133                { return this->minDistanceToOwner_; }
     134            inline float getMaxShootingRange()
     135                { return this->maxShootingRange_; }
    132136           
    133137        private:
     
    141145            float maxDistanceToOwner_; //Maximum Distance to owner
    142146            float minDistanceToOwner_; //Minimum Distance to owner
     147            float maxShootingRange_;
    143148    };
    144149
Note: See TracChangeset for help on using the changeset viewer.