C# Class Descent.Model.Player.Figure.Monster

A monster, controlled by the Overlord
Inheritance: Figure
ファイルを表示 Open project: nezbo/Descent Class Usage Examples

Public Methods

Method Description
Clone ( int newID ) : Monster

Returns a clone of the monster, but with a new unique ID

Monster ( int id, string name, bool master, int speed, int health, int armor, EAttackType type, List dice, List abilities, Rectangle size, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System.Collections.Generic

Initializes a new instance of the Monster class.

Private Methods

Method Description
ObjectInvariant ( ) : void

Method Details

Clone() public method

Returns a clone of the monster, but with a new unique ID
public Clone ( int newID ) : Monster
newID int /// The new id of the monser ///
return Monster

Monster() public method

Initializes a new instance of the Monster class.
public Monster ( int id, string name, bool master, int speed, int health, int armor, EAttackType type, List dice, List abilities, Rectangle size, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System.Collections.Generic
id int /// The monster id /// This is unique for all monsters, even several instances of /// the same monster. ///
name string /// The name. ///
master bool /// The master. ///
speed int /// The speed. ///
health int /// The health. ///
armor int /// The armor. ///
type EAttackType /// The type. ///
dice List /// The dice. ///
abilities List
size Microsoft.Xna.Framework.Rectangle
texture Microsoft.Xna.Framework.Graphics.Texture2D
return System.Collections.Generic