C# Class DivineRightGame.ItemFactory.ItemFactory

This class is used to create items from a string.
Mostra file Open project: Haedrian/Divine-Right

Public Methods

Method Description
CreateItem ( Archetype archetype, string tag, int &itemID ) : MapItem

Creates an item from an Archetype and a tag. The item to be created is random, as long as it shares the correct tag.

CreateItem ( string category, List parameters ) : MapItem
CreateItem ( string category, int itemID ) : MapItem

Creates an item from its category and its internal name

CreateItem ( string category, string tag, int &itemID ) : MapItem

Creates an item from a category and a tag The item to be created is random, as long as it shares the correct tag

Method Details

CreateItem() public method

Creates an item from an Archetype and a tag. The item to be created is random, as long as it shares the correct tag.
public CreateItem ( Archetype archetype, string tag, int &itemID ) : MapItem
archetype Archetype
tag string
itemID int The id of the chosen item
return DRObjects.MapItem

CreateItem() public method

public CreateItem ( string category, List parameters ) : MapItem
category string
parameters List
return DRObjects.MapItem

CreateItem() public method

Creates an item from its category and its internal name
public CreateItem ( string category, int itemID ) : MapItem
category string
itemID int
return DRObjects.MapItem

CreateItem() public method

Creates an item from a category and a tag The item to be created is random, as long as it shares the correct tag
public CreateItem ( string category, string tag, int &itemID ) : MapItem
category string
tag string
itemID int The id of the chosen item, in case multiples need to be produced
return DRObjects.MapItem