C# Class Descent.Model.Board.Marker.ChestMarker

A marker of a chest, on the board
Inheritance: Marker
Show file Open project: nezbo/Descent Class Usage Examples

Public Methods

Method Description
ChestMarker ( int id, string name, int movementCost, EquipmentRarity rarity, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System.Diagnostics.Contracts
PickUp ( Hero hero ) : void

Will get a random chest Id and queue the event to open that chest

Method Details

ChestMarker() public method

public ChestMarker ( int id, string name, int movementCost, EquipmentRarity rarity, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System.Diagnostics.Contracts
id int
name string
movementCost int
rarity EquipmentRarity
texture Microsoft.Xna.Framework.Graphics.Texture2D
return System.Diagnostics.Contracts

PickUp() public method

Will get a random chest Id and queue the event to open that chest
public PickUp ( Hero hero ) : void
hero Hero /// The hero that opend the chest ///
return void