From 8330e111597c6dbbc3ede2a2a05fa20eda8ceb5f Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Fri, 27 Jan 2012 17:17:18 -0800 Subject: PATH-187: Refactoring to make the appropriate class able to be inlined. --- indra/newview/llpathfindinglinksets.cpp | 72 ++------------------------------- 1 file changed, 4 insertions(+), 68 deletions(-) (limited to 'indra/newview/llpathfindinglinksets.cpp') diff --git a/indra/newview/llpathfindinglinksets.cpp b/indra/newview/llpathfindinglinksets.cpp index 0d9abb289f..57623e0e43 100644 --- a/indra/newview/llpathfindinglinksets.cpp +++ b/indra/newview/llpathfindinglinksets.cpp @@ -199,40 +199,6 @@ LLPathfindingLinkset& LLPathfindingLinkset::operator =(const LLPathfindingLinkse return *this; } -const LLUUID& LLPathfindingLinkset::getUUID() const -{ - return mUUID; -} - -const std::string& LLPathfindingLinkset::getName() const -{ - return mName; -} - -const std::string& LLPathfindingLinkset::getDescription() const -{ - return mDescription; -} - -U32 LLPathfindingLinkset::getLandImpact() const -{ - return mLandImpact; -} - -const LLVector3& LLPathfindingLinkset::getPositionAgent() const -{ - return mLocation; -} - -LLPathfindingLinkset::EPathState LLPathfindingLinkset::getPathState() const -{ - return mPathState; -} - -void LLPathfindingLinkset::setPathState(EPathState pPathState) -{ - mPathState = pPathState; -} LLPathfindingLinkset::EPathState LLPathfindingLinkset::getPathState(bool pIsPermanent, bool pIsWalkable) { @@ -283,54 +249,24 @@ BOOL LLPathfindingLinkset::isWalkable(EPathState pPathState) return retVal; } -BOOL LLPathfindingLinkset::isPhantom() const -{ - return mIsPhantom; -} - -void LLPathfindingLinkset::setPhantom(BOOL pIsPhantom) -{ - mIsPhantom = pIsPhantom; -} - -S32 LLPathfindingLinkset::getWalkabilityCoefficientA() const -{ - return mWalkabilityCoefficientA; -} - void LLPathfindingLinkset::setWalkabilityCoefficientA(S32 pA) { - mWalkabilityCoefficientA = pA; -} - -S32 LLPathfindingLinkset::getWalkabilityCoefficientB() const -{ - return mWalkabilityCoefficientB; + mWalkabilityCoefficientA = llclamp(pA, MIN_WALKABILITY_VALUE, MAX_WALKABILITY_VALUE); } void LLPathfindingLinkset::setWalkabilityCoefficientB(S32 pB) { - mWalkabilityCoefficientB = pB; -} - -S32 LLPathfindingLinkset::getWalkabilityCoefficientC() const -{ - return mWalkabilityCoefficientC; + mWalkabilityCoefficientB = llclamp(pB, MIN_WALKABILITY_VALUE, MAX_WALKABILITY_VALUE); } void LLPathfindingLinkset::setWalkabilityCoefficientC(S32 pC) { - mWalkabilityCoefficientC = pC; -} - -S32 LLPathfindingLinkset::getWalkabilityCoefficientD() const -{ - return mWalkabilityCoefficientD; + mWalkabilityCoefficientC = llclamp(pC, MIN_WALKABILITY_VALUE, MAX_WALKABILITY_VALUE); } void LLPathfindingLinkset::setWalkabilityCoefficientD(S32 pD) { - mWalkabilityCoefficientD = pD; + mWalkabilityCoefficientD = llclamp(pD, MIN_WALKABILITY_VALUE, MAX_WALKABILITY_VALUE); } LLSD LLPathfindingLinkset::getAlteredFields(EPathState pPathState, S32 pA, S32 pB, S32 pC, S32 pD, BOOL pIsPhantom) const -- cgit v1.2.3