LLGlobalEconomy Class Reference

#include <lleconomy.h>

Inheritance diagram for LLGlobalEconomy:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LLGlobalEconomy ()
virtual ~LLGlobalEconomy ()
virtual void print ()
S32 calculateTeleportCost (F32 distance) const
S32 calculateLightRent (const LLVector3 &object_size) const
S32 getObjectCount () const
S32 getObjectCapacity () const
S32 getPriceObjectClaim () const
S32 getPricePublicObjectDecay () const
S32 getPricePublicObjectDelete () const
S32 getPricePublicObjectRelease () const
S32 getPriceEnergyUnit () const
S32 getPriceUpload () const
S32 getPriceRentLight () const
S32 getTeleportMinPrice () const
F32 getTeleportPriceExponent () const
S32 getPriceGroupCreate () const
void setObjectCount (S32 val)
void setObjectCapacity (S32 val)
void setPriceObjectClaim (S32 val)
void setPricePublicObjectDecay (S32 val)
void setPricePublicObjectDelete (S32 val)
void setPriceEnergyUnit (S32 val)
void setPriceUpload (S32 val)
void setPriceRentLight (S32 val)
void setTeleportMinPrice (S32 val)
void setTeleportPriceExponent (F32 val)
void setPriceGroupCreate (S32 val)

Static Public Member Functions

static void processEconomyData (LLMessageSystem *msg, void **user_data)

Private Attributes

S32 mObjectCount
S32 mObjectCapacity
S32 mPriceObjectClaim
S32 mPricePublicObjectDecay
S32 mPricePublicObjectDelete
S32 mPriceEnergyUnit
S32 mPriceUpload
S32 mPriceRentLight
S32 mTeleportMinPrice
F32 mTeleportPriceExponent
S32 mPriceGroupCreate

Detailed Description

Definition at line 37 of file lleconomy.h.


Constructor & Destructor Documentation

LLGlobalEconomy::LLGlobalEconomy (  ) 

Definition at line 40 of file lleconomy.cpp.

LLGlobalEconomy::~LLGlobalEconomy (  )  [virtual]

Definition at line 54 of file lleconomy.cpp.


Member Function Documentation

S32 LLGlobalEconomy::calculateLightRent ( const LLVector3 object_size  )  const

Definition at line 107 of file lleconomy.cpp.

References getPriceRentLight(), llmax(), LLVector3::magVec(), and S32.

S32 LLGlobalEconomy::calculateTeleportCost ( F32  distance  )  const

Definition at line 89 of file lleconomy.cpp.

References f, getTeleportMinPrice(), getTeleportPriceExponent(), and S32.

S32 LLGlobalEconomy::getObjectCapacity (  )  const [inline]

Definition at line 51 of file lleconomy.h.

References mObjectCapacity.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getObjectCount (  )  const [inline]

Definition at line 50 of file lleconomy.h.

References mObjectCount.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPriceEnergyUnit (  )  const [inline]

Definition at line 56 of file lleconomy.h.

References mPriceEnergyUnit.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPriceGroupCreate (  )  const [inline]

Definition at line 61 of file lleconomy.h.

References mPriceGroupCreate.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPriceObjectClaim (  )  const [inline]

Definition at line 52 of file lleconomy.h.

References mPriceObjectClaim.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPricePublicObjectDecay (  )  const [inline]

Definition at line 53 of file lleconomy.h.

References mPricePublicObjectDecay.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPricePublicObjectDelete (  )  const [inline]

Definition at line 54 of file lleconomy.h.

References mPricePublicObjectDelete.

Referenced by LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPricePublicObjectRelease (  )  const [inline]

Definition at line 55 of file lleconomy.h.

References mPriceObjectClaim, and mPricePublicObjectDelete.

Referenced by print().

S32 LLGlobalEconomy::getPriceRentLight (  )  const [inline]

Definition at line 58 of file lleconomy.h.

References mPriceRentLight.

Referenced by calculateLightRent(), and LLRegionEconomy::processEconomyDataRequest().

S32 LLGlobalEconomy::getPriceUpload (  )  const [inline]

Definition at line 57 of file lleconomy.h.

References mPriceUpload.

Referenced by LLFileEnableUpload::handleEvent(), LLRegionEconomy::processEconomyDataRequest(), upload_done_callback(), upload_new_resource(), LLNewAgentInventoryResponder::uploadComplete(), and LLAssetUploadResponder::uploadFailure().

S32 LLGlobalEconomy::getTeleportMinPrice (  )  const [inline]

Definition at line 59 of file lleconomy.h.

References mTeleportMinPrice.

Referenced by calculateTeleportCost(), and LLRegionEconomy::processEconomyDataRequest().

F32 LLGlobalEconomy::getTeleportPriceExponent (  )  const [inline]

Definition at line 60 of file lleconomy.h.

References mTeleportPriceExponent.

Referenced by calculateTeleportCost(), and LLRegionEconomy::processEconomyDataRequest().

void LLGlobalEconomy::print (  )  [virtual]

Reimplemented in LLRegionEconomy.

Definition at line 113 of file lleconomy.cpp.

References getPricePublicObjectRelease(), llendl, llinfos, mObjectCapacity, mObjectCount, mPriceEnergyUnit, mPriceGroupCreate, mPriceObjectClaim, mPricePublicObjectDecay, mPricePublicObjectDelete, mPriceRentLight, mPriceUpload, mTeleportMinPrice, and mTeleportPriceExponent.

Referenced by LLRegionEconomy::print().

void LLGlobalEconomy::processEconomyData ( LLMessageSystem msg,
void **  user_data 
) [static]

Reimplemented in LLRegionEconomy.

Definition at line 58 of file lleconomy.cpp.

References _PREHASH_Info, _PREHASH_ObjectCapacity, _PREHASH_ObjectCount, _PREHASH_PriceEnergyUnit, _PREHASH_PriceGroupCreate, _PREHASH_PriceObjectClaim, _PREHASH_PricePublicObjectDecay, _PREHASH_PricePublicObjectDelete, _PREHASH_PriceRentLight, _PREHASH_PriceUpload, _PREHASH_TeleportMinPrice, _PREHASH_TeleportPriceExponent, f, LLMessageSystem::getF32Fast(), LLMessageSystem::getS32Fast(), i, S32, setObjectCapacity(), setObjectCount(), setPriceEnergyUnit(), setPriceGroupCreate(), setPriceObjectClaim(), setPricePublicObjectDecay(), setPricePublicObjectDelete(), setPriceRentLight(), setPriceUpload(), setTeleportMinPrice(), and setTeleportPriceExponent().

Referenced by process_economy_data(), and LLRegionEconomy::processEconomyData().

void LLGlobalEconomy::setObjectCapacity ( S32  val  )  [inline]

Definition at line 65 of file lleconomy.h.

References mObjectCapacity.

Referenced by processEconomyData().

void LLGlobalEconomy::setObjectCount ( S32  val  )  [inline]

Definition at line 64 of file lleconomy.h.

References mObjectCount.

Referenced by processEconomyData().

void LLGlobalEconomy::setPriceEnergyUnit ( S32  val  )  [inline]

Definition at line 69 of file lleconomy.h.

References mPriceEnergyUnit.

Referenced by processEconomyData().

void LLGlobalEconomy::setPriceGroupCreate ( S32  val  )  [inline]

Definition at line 74 of file lleconomy.h.

References mPriceGroupCreate.

Referenced by processEconomyData().

void LLGlobalEconomy::setPriceObjectClaim ( S32  val  )  [inline]

Definition at line 66 of file lleconomy.h.

References mPriceObjectClaim.

Referenced by processEconomyData().

void LLGlobalEconomy::setPricePublicObjectDecay ( S32  val  )  [inline]

Definition at line 67 of file lleconomy.h.

References mPricePublicObjectDecay.

Referenced by processEconomyData().

void LLGlobalEconomy::setPricePublicObjectDelete ( S32  val  )  [inline]

Definition at line 68 of file lleconomy.h.

References mPricePublicObjectDelete.

Referenced by processEconomyData().

void LLGlobalEconomy::setPriceRentLight ( S32  val  )  [inline]

Definition at line 71 of file lleconomy.h.

References mPriceRentLight.

Referenced by processEconomyData().

void LLGlobalEconomy::setPriceUpload ( S32  val  )  [inline]

Definition at line 70 of file lleconomy.h.

References mPriceUpload.

Referenced by processEconomyData().

void LLGlobalEconomy::setTeleportMinPrice ( S32  val  )  [inline]

Definition at line 72 of file lleconomy.h.

References mTeleportMinPrice.

Referenced by processEconomyData().

void LLGlobalEconomy::setTeleportPriceExponent ( F32  val  )  [inline]

Definition at line 73 of file lleconomy.h.

References mTeleportPriceExponent.

Referenced by processEconomyData().


Member Data Documentation

S32 LLGlobalEconomy::mObjectCapacity [private]

Definition at line 78 of file lleconomy.h.

Referenced by getObjectCapacity(), print(), and setObjectCapacity().

S32 LLGlobalEconomy::mObjectCount [private]

Definition at line 77 of file lleconomy.h.

Referenced by getObjectCount(), print(), and setObjectCount().

S32 LLGlobalEconomy::mPriceEnergyUnit [private]

Definition at line 82 of file lleconomy.h.

Referenced by getPriceEnergyUnit(), print(), and setPriceEnergyUnit().

S32 LLGlobalEconomy::mPriceGroupCreate [private]

Definition at line 87 of file lleconomy.h.

Referenced by getPriceGroupCreate(), print(), and setPriceGroupCreate().

S32 LLGlobalEconomy::mPriceObjectClaim [private]

Definition at line 79 of file lleconomy.h.

Referenced by getPriceObjectClaim(), getPricePublicObjectRelease(), print(), and setPriceObjectClaim().

S32 LLGlobalEconomy::mPricePublicObjectDecay [private]

Definition at line 80 of file lleconomy.h.

Referenced by getPricePublicObjectDecay(), print(), and setPricePublicObjectDecay().

S32 LLGlobalEconomy::mPricePublicObjectDelete [private]

Definition at line 81 of file lleconomy.h.

Referenced by getPricePublicObjectDelete(), getPricePublicObjectRelease(), print(), and setPricePublicObjectDelete().

S32 LLGlobalEconomy::mPriceRentLight [private]

Definition at line 84 of file lleconomy.h.

Referenced by getPriceRentLight(), print(), and setPriceRentLight().

S32 LLGlobalEconomy::mPriceUpload [private]

Definition at line 83 of file lleconomy.h.

Referenced by getPriceUpload(), print(), and setPriceUpload().

S32 LLGlobalEconomy::mTeleportMinPrice [private]

Definition at line 85 of file lleconomy.h.

Referenced by getTeleportMinPrice(), print(), and setTeleportMinPrice().

F32 LLGlobalEconomy::mTeleportPriceExponent [private]

Definition at line 86 of file lleconomy.h.

Referenced by getTeleportPriceExponent(), print(), and setTeleportPriceExponent().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:23 2010 for Second Life Viewer by  doxygen 1.4.7