C# Class MyPolarBear.GameObjects.Enemy

Inheritance: System.Entity
Afficher le fichier Open project: sgdc/sgdc-old Class Usage Examples

Méthodes publiques

Свойство Type Description
IsAlive bool
Pouch SeedPouch
retryTimer double
stuckCounter int
stuckTimer int

Méthodes publiques

Méthode Description
AddCommand ( AIComponent command ) : void
ClearCommands ( ) : void
Command ( ) : void
Draw ( SpriteBatch spriteBatch ) : void
Enemy ( Vector2 position ) : System
GetTargetType ( ) : String
LoadContent ( ) : void
PlayAppropriateAnimation ( ) : void
Update ( GameTime gameTime ) : void
changeState ( State newState ) : void

Private Methods

Méthode Description
ListenForCommands ( ) : void
StartCommands ( ) : void
beAfraid ( GameTime gameTime ) : void
beAimless ( GameTime gameTime ) : void
beEvil ( GameTime gameTime ) : void
beFollowing ( GameTime gameTime ) : void
bePlanting ( GameTime gameTime ) : void
checkStuck ( GameTime gameTime ) : void
dealWithCollisions ( ) : void
doCommands ( GameTime gameTime ) : void
drawCommands ( SpriteBatch spriteBatch ) : void

Method Details

AddCommand() public méthode

public AddCommand ( AIComponent command ) : void
command MyPolarBear.AI.AIComponent
Résultat void

ClearCommands() public méthode

public ClearCommands ( ) : void
Résultat void

Command() public méthode

public Command ( ) : void
Résultat void

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Enemy() public méthode

public Enemy ( Vector2 position ) : System
position Vector2
Résultat System

GetTargetType() public méthode

public GetTargetType ( ) : String
Résultat String

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

PlayAppropriateAnimation() public méthode

public PlayAppropriateAnimation ( ) : void
Résultat void

Update() public méthode

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

changeState() public méthode

public changeState ( State newState ) : void
newState State
Résultat void

Property Details

IsAlive public_oe property

public bool IsAlive
Résultat bool

Pouch public_oe property

public SeedPouch,MyPolarBear.GameObjects Pouch
Résultat SeedPouch

retryTimer public_oe property

public double retryTimer
Résultat double

stuckCounter public_oe property

public int stuckCounter
Résultat int

stuckTimer public_oe property

public int stuckTimer
Résultat int