C# Class DodongosQuest.Creatures.Creature

Inheritance: ICreature
Afficher le fichier Open project: faintpixel/Roguelike Class Usage Examples

Méthodes publiques

Méthode Description
AddTemporaryEffect ( ITemporaryEffect effect ) : void
AttackCreature ( ICreature &creature ) : void
Creature ( string name, Vector2 worldIndex, MovementType movementType, Stat hitPoints, Stat mana, ITurnStrategy turnStrategy, IDrawStrategy drawStrategy, IDeathStrategy deathStrategy, IAttackStrategy attackStrategy, World world, IRemains remains ) : System
Die ( ) : void
Draw ( GameTime gameTime ) : void
GetItemFromInventory ( Items itemType ) : IItem
IsPlayer ( ) : bool
TakeTurn ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Méthode Description
TemporaryEffectCompleted ( ITemporaryEffect sender ) : void

Method Details

AddTemporaryEffect() public méthode

public AddTemporaryEffect ( ITemporaryEffect effect ) : void
effect ITemporaryEffect
Résultat void

AttackCreature() public méthode

public AttackCreature ( ICreature &creature ) : void
creature ICreature
Résultat void

Creature() public méthode

public Creature ( string name, Vector2 worldIndex, MovementType movementType, Stat hitPoints, Stat mana, ITurnStrategy turnStrategy, IDrawStrategy drawStrategy, IDeathStrategy deathStrategy, IAttackStrategy attackStrategy, World world, IRemains remains ) : System
name string
worldIndex Vector2
movementType MovementType
hitPoints Stat
mana Stat
turnStrategy ITurnStrategy
drawStrategy IDrawStrategy
deathStrategy IDeathStrategy
attackStrategy IAttackStrategy
world World
remains IRemains
Résultat System

Die() public méthode

public Die ( ) : void
Résultat void

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

GetItemFromInventory() public méthode

public GetItemFromInventory ( Items itemType ) : IItem
itemType Items
Résultat IItem

IsPlayer() public méthode

public IsPlayer ( ) : bool
Résultat bool

TakeTurn() public méthode

public TakeTurn ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void