C# Class MyPolarBear.GameObjects.Enemy

Inheritance: System.Entity
Mostra file Open project: sgdc/sgdc-old Class Usage Examples

Public Properties

Property Type Description
IsAlive bool
Pouch SeedPouch
retryTimer double
stuckCounter int
stuckTimer int

Public Methods

Method 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

Method 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 method

public AddCommand ( AIComponent command ) : void
command MyPolarBear.AI.AIComponent
return void

ClearCommands() public method

public ClearCommands ( ) : void
return void

Command() public method

public Command ( ) : void
return void

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Enemy() public method

public Enemy ( Vector2 position ) : System
position Vector2
return System

GetTargetType() public method

public GetTargetType ( ) : String
return String

LoadContent() public method

public LoadContent ( ) : void
return void

PlayAppropriateAnimation() public method

public PlayAppropriateAnimation ( ) : void
return void

Update() public method

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

changeState() public method

public changeState ( State newState ) : void
newState State
return void

Property Details

IsAlive public_oe property

public bool IsAlive
return bool

Pouch public_oe property

public SeedPouch,MyPolarBear.GameObjects Pouch
return SeedPouch

retryTimer public_oe property

public double retryTimer
return double

stuckCounter public_oe property

public int stuckCounter
return int

stuckTimer public_oe property

public int stuckTimer
return int