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

A generic marker that is on the board, that can be picked up and used
Inheritance: Drawable
Show file Open project: nezbo/Descent

Public Methods

Method Description
Marker ( int id, string name, Microsoft.Xna.Framework.Graphics.Texture2D texture, int movementPoints ) : System.Diagnostics.Contracts

Initializes a new instance of the Marker class.

PickUp ( Hero hero ) : void

Picks up, or interacts with, the marker

Private Methods

Method Description
ObjectInvariant ( ) : void

Method Details

Marker() public method

Initializes a new instance of the Marker class.
public Marker ( int id, string name, Microsoft.Xna.Framework.Graphics.Texture2D texture, int movementPoints ) : System.Diagnostics.Contracts
id int /// The unique 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 that it costs to interact with it ///
return System.Diagnostics.Contracts

PickUp() public abstract method

Picks up, or interacts with, the marker
public abstract PickUp ( Hero hero ) : void
hero Hero /// The hero, standing on the marker ///
return void