Method | Description | |
---|---|---|
ChangeEffect ( |
Method the activate the effects of an item for an owner
|
|
Drop ( |
Method to drop an item from an actor to the ground. Deletes the item from the inventory and creats an itemtile to place the item on the ground
|
|
EquipItem ( ) : void |
Method to (un)equip an item disables and enables the effects of the item
|
|
EstimateValue ( ) : void |
Method to evaluate the (gold)value of an item based of the type of the item and the number of effects.
|
|
GenerateIcon ( ) : void |
Method to determine the icon for an item based on what kind of item it is
|
|
GenerateName ( ) : void |
Method to generate a matching name for an item
|
|
GenerateProperties ( |
Method to create (random) effects for an item
|
|
Item ( ) : System |
Konstruktor.
|
|
Item ( |
Ein weiterer Konstruktor.
|
|
Item ( |
Noch ein Konstruktor mit anderen Initial-Parametern.
|
|
Item ( ItemType itemtype, string name = "", |
Another constructor for items
|
|
Item ( |
Constructor for an item.
|
|
Load ( |
Saving method. Parses the path to the item icon and all effects to xml
|
|
Pickup ( |
Method called when an actor picks up an item from the ground. Replaces the old owner and deletes the itemtile from the map
|
|
PropertyToString ( ItemProperty property ) : string |
Method to convert the name of a property to a string
|
|
Save ( |
Saving method
|
|
Update ( ) : void |
The Update method for the itemeffect-duration
|
|
UseItem ( ) : void |
Method called when a item is used.
|
public ChangeEffect ( |
||
effect | The effect which should be (de)activated | |
enable | bool | Whether the effect gets (de)activated |
return | void |
public Drop ( |
||
tile | The tile on which the itemtile with the item will be added. | |
return | void |
public GenerateProperties ( |
||
r | A dice used to create the effetcs | |
return | void |
public Item ( |
||
owner | Der Besitzer-Actor des Items. | |
itemtype | ItemType | Typ |
name | string | Name |
icon | ImageData | Symbol |
value | int | Wert |
level | int | Level |
return | System |
public Item ( |
||
parent | ||
itemtype | ItemType | |
name | string | |
icon | ImageData | |
value | int | |
level | int | |
return | System |
public Item ( ItemType itemtype, string name = "", |
||
itemtype | ItemType | |
name | string | |
r | ||
icon | ImageData | |
value | int | |
level | int | |
return | System |
public Item ( |
||
r | by default null, gets generated in the constructor | |
value | int | by default 0 |
level | int | by default 1 |
gold | bool | True if the constructed item can be gold |
return | System |
public Load ( |
||
reader | XmlReader. | |
return | void |
public Pickup ( |
||
actor | The actor which gains the item | |
return | void |
public static PropertyToString ( ItemProperty property ) : string | ||
property | ItemProperty | The effect which should be parsed to a string |
return | string |
public Save ( |
||
xmlw | XmlWriter. | |
return | void |