C# Class DodongosQuest.Creatures.Creature

Inheritance: ICreature
Mostrar archivo Open project: faintpixel/Roguelike Class Usage Examples

Public Methods

Method 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

Method Description
TemporaryEffectCompleted ( ITemporaryEffect sender ) : void

Method Details

AddTemporaryEffect() public method

public AddTemporaryEffect ( ITemporaryEffect effect ) : void
effect ITemporaryEffect
return void

AttackCreature() public method

public AttackCreature ( ICreature &creature ) : void
creature ICreature
return void

Creature() public method

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
return System

Die() public method

public Die ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

GetItemFromInventory() public method

public GetItemFromInventory ( Items itemType ) : IItem
itemType Items
return IItem

IsPlayer() public method

public IsPlayer ( ) : bool
return bool

TakeTurn() public method

public TakeTurn ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void