C# 클래스 Descent.Model.Board.Marker.Marker

A generic marker that is on the board, that can be picked up and used
상속: Drawable
파일 보기 프로젝트 열기: nezbo/Descent

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ObjectInvariant ( ) : void

메소드 상세

Marker() 공개 메소드

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 ///
리턴 System.Diagnostics.Contracts

PickUp() 공개 추상적인 메소드

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