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

A potion marker, that can be on a board
Inheritance: Marker
Show file Open project: nezbo/Descent Class Usage Examples

Public Methods

Method Description
PickUp ( Hero hero ) : void

Picks up the potion

PotionMarker ( int id, string name, Microsoft.Xna.Framework.Graphics.Texture2D texture, int movementPoints, Equipment potion ) : System.Diagnostics.Contracts

Initializes a new instance of the PotionMarker class.

Method Details

PickUp() public method

Picks up the potion
public PickUp ( Hero hero ) : void
hero Hero /// The hero. ///
return void

PotionMarker() public method

Initializes a new instance of the PotionMarker class.
public PotionMarker ( int id, string name, Microsoft.Xna.Framework.Graphics.Texture2D texture, int movementPoints, Equipment potion ) : System.Diagnostics.Contracts
id int /// The id of the marker ///
name string /// The name of the marker ///
texture Microsoft.Xna.Framework.Graphics.Texture2D /// The texture of the marker ///
movementPoints int /// The movement points it costs to pickup the marker ///
potion Descent.Model.Player.Figure.HeroStuff.Equipment /// The potion that a hero will gain by picking it up ///
return System.Diagnostics.Contracts