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

A potion marker, that can be on a board
상속: Marker
파일 보기 프로젝트 열기: nezbo/Descent 1 사용 예제들

공개 메소드들

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

메소드 상세

PickUp() 공개 메소드

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

PotionMarker() 공개 메소드

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