Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.GameMoney Class Reference

Zusammenfassung für GameLoot. More...

Inheritance diagram for DOL.GS.GameMoney:
DOL.GS.GameStaticItemTimed DOL.GS.GameStaticItem DOL.GS.GameObject DOL.GS.Point3D DOL.GS.Point2D DOL.GS.IPoint3D DOL.GS.IPoint2D DOL.GS.IPoint2D

List of all members.

Public Member Functions

 GameMoney (long copperValue)
 Constructs a new Money bag with a value that will disappear after 2 minutes.
 GameMoney (long copperValue, GameObject dropper)
 Constructs a new Money bag with a value and the position of the dropper It will disappear after 2 minutes.

Static Public Member Functions

static bool IsItemMoney (string name)
 Checks whether the name is money item name.

Protected Attributes

long m_copperValue
 The value of copper in this coinbag.

Static Protected Attributes

static readonly string[] NAMES = new string[]{"bag of coins", "small chest", "large chest", "some copper coins"}
 The list of money loot names.

Properties

int Mithril [get]
 Returns the number of mithril pieces in this bag.
int Platinum [get]
 Returns the number of platinum pieces in this bag.
int Gold [get]
 Returns the number of gold pieces in this bag.
int Silver [get]
 Returns the number of silver pieces in this bag.
int Copper [get]
 Returns the number of copper pieces in this bag.
long TotalCopper [get, set]
 Gets/Sets the total copper value of this bag.

Detailed Description

Zusammenfassung für GameLoot.


Constructor & Destructor Documentation

DOL.GS.GameMoney.GameMoney ( long  copperValue)

Constructs a new Money bag with a value that will disappear after 2 minutes.

Parameters:
copperValuethe coppervalue of this bag
DOL.GS.GameMoney.GameMoney ( long  copperValue,
GameObject  dropper 
)

Constructs a new Money bag with a value and the position of the dropper It will disappear after 2 minutes.

Parameters:
copperValuethe coppervalue of this bag
dropperthe gameobject that dropped this bag

Member Function Documentation

static bool DOL.GS.GameMoney.IsItemMoney ( string  name) [static]

Checks whether the name is money item name.

Parameters:
name
Returns:

Member Data Documentation

The value of copper in this coinbag.

readonly string [] DOL.GS.GameMoney.NAMES = new string[]{"bag of coins", "small chest", "large chest", "some copper coins"} [static, protected]

The list of money loot names.


Property Documentation

int DOL.GS.GameMoney.Copper [get]

Returns the number of copper pieces in this bag.

int DOL.GS.GameMoney.Gold [get]

Returns the number of gold pieces in this bag.

int DOL.GS.GameMoney.Mithril [get]

Returns the number of mithril pieces in this bag.

int DOL.GS.GameMoney.Platinum [get]

Returns the number of platinum pieces in this bag.

int DOL.GS.GameMoney.Silver [get]

Returns the number of silver pieces in this bag.

long DOL.GS.GameMoney.TotalCopper [get, set]

Gets/Sets the total copper value of this bag.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events