C# 클래스 Descent.Model.Player.Figure.Figure

A generic figure, either a hero or a monster
상속: Drawable
파일 보기 프로젝트 열기: nezbo/Descent 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
abilities List
armor int
attacksLeft int
diceForAttacks List
effects List
health int
maxHealth int
movementLeft int
name string
speed int
surgeAbilities List
texture Microsoft.Xna.Framework.Graphics.Texture2D
uniqueID int

공개 메소드들

메소드 설명
AddAbility ( Ability ability ) : void

Adds an ability to the list of abilities for this figure

AddAttack ( ) : void

Add one attack.

AddHealth ( int amount ) : void

Adds a number of health to the health total, up to the max health

AddMovement ( int amount ) : void

Adds speed to the speed total

Figure ( int id, string name, Rectangle size ) : System.Collections.Generic

Initializes a new instance of the Figure class.

GetAttack ( Point targetSquare ) : Attack

Gets an attack instance with the attacking figure, different bonuses, and the dice attacking

Initialize ( ) : void

Call when the game is about to start, so the figure gets life

RemoveAttack ( ) : void

Remove one attack.

RemoveHealth ( int amount ) : void

Removes a number of health to the health total, down to 0

RemoveMovement ( int amount ) : void

Removes speed to the speed total, down to 0

SetAttacks ( int amount ) : void

Sets how many attacks the hero has (without bonus). Used at the start of the hero's turn.

SetMovement ( int amount ) : void

Sets the movement left equal to the amount.

비공개 메소드들

메소드 설명
ObjectInvariant ( ) : void

메소드 상세

AddAbility() 공개 메소드

Adds an ability to the list of abilities for this figure
public AddAbility ( Ability ability ) : void
ability Descent.Model.Event.Ability /// The ability to be added ///
리턴 void

AddAttack() 공개 메소드

Add one attack.
public AddAttack ( ) : void
리턴 void

AddHealth() 공개 메소드

Adds a number of health to the health total, up to the max health
public AddHealth ( int amount ) : void
amount int /// The amount to be added ///
리턴 void

AddMovement() 공개 메소드

Adds speed to the speed total
public AddMovement ( int amount ) : void
amount int /// The amount to be added ///
리턴 void

Figure() 공개 메소드

Initializes a new instance of the Figure class.
public Figure ( int id, string name, Rectangle size ) : System.Collections.Generic
id int /// The id of the figure ///
name string /// The name of the figure ///
size Microsoft.Xna.Framework.Rectangle /// The size of the figure ///
리턴 System.Collections.Generic

GetAttack() 공개 메소드

Gets an attack instance with the attacking figure, different bonuses, and the dice attacking
public GetAttack ( Point targetSquare ) : Attack
targetSquare Microsoft.Xna.Framework.Point /// The target point where the figure is attacking ///
리턴 Descent.Model.Event.Attack

Initialize() 공개 메소드

Call when the game is about to start, so the figure gets life
public Initialize ( ) : void
리턴 void

RemoveAttack() 공개 메소드

Remove one attack.
public RemoveAttack ( ) : void
리턴 void

RemoveHealth() 공개 메소드

Removes a number of health to the health total, down to 0
public RemoveHealth ( int amount ) : void
amount int /// The amount to be removed ///
리턴 void

RemoveMovement() 공개 메소드

Removes speed to the speed total, down to 0
public RemoveMovement ( int amount ) : void
amount int /// The amount to be removed ///
리턴 void

SetAttacks() 공개 메소드

Sets how many attacks the hero has (without bonus). Used at the start of the hero's turn.
public SetAttacks ( int amount ) : void
amount int /// The amount of attacks ///
리턴 void

SetMovement() 공개 메소드

Sets the movement left equal to the amount.
public SetMovement ( int amount ) : void
amount int /// The amount of movement ///
리턴 void

프로퍼티 상세

abilities 보호되어 있는 프로퍼티

protected List abilities
리턴 List

armor 보호되어 있는 프로퍼티

protected int armor
리턴 int

attacksLeft 보호되어 있는 프로퍼티

protected int attacksLeft
리턴 int

diceForAttacks 보호되어 있는 프로퍼티

protected List diceForAttacks
리턴 List

effects 보호되어 있는 프로퍼티

protected List effects
리턴 List

health 보호되어 있는 프로퍼티

protected int health
리턴 int

maxHealth 보호되어 있는 프로퍼티

protected int maxHealth
리턴 int

movementLeft 보호되어 있는 프로퍼티

protected int movementLeft
리턴 int

name 보호되어 있는 프로퍼티

protected string name
리턴 string

speed 보호되어 있는 프로퍼티

protected int speed
리턴 int

surgeAbilities 보호되어 있는 프로퍼티

protected List surgeAbilities
리턴 List

texture 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics texture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

uniqueID 보호되어 있는 프로퍼티

protected int uniqueID
리턴 int