C# Class MyPolarBear.GameObjects.PolarBear

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

Public Properties

Property Type Description
CurHitPoints int
IsAlive bool
MaxHitPoints int
NumSeeds int
NumWater int
bMoving bool
bPathfinding bool
power Power

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
HitLanded ( Projectile attack, ITargetable hit ) : void
LoadContent ( ) : void
PolarBear ( Vector2 position ) : System
ShootProjectile ( Vector2 direction ) : Projectile
SwitchPowers ( ) : void
TakeDamage ( int amount, System.Entity source ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
giveAttackCommand ( String targetType ) : void

Method Details

Draw() public method

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

HitLanded() public method

public HitLanded ( Projectile attack, ITargetable hit ) : void
attack Projectile
hit ITargetable
return void

LoadContent() public method

public LoadContent ( ) : void
return void

PolarBear() public method

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

ShootProjectile() public method

public ShootProjectile ( Vector2 direction ) : Projectile
direction Vector2
return Projectile

SwitchPowers() public method

public SwitchPowers ( ) : void
return void

TakeDamage() public static method

public static TakeDamage ( int amount, System.Entity source ) : void
amount int
source System.Entity
return void

Update() public method

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

Property Details

CurHitPoints public static property

public static int CurHitPoints
return int

IsAlive public property

public bool IsAlive
return bool

MaxHitPoints public static property

public static int MaxHitPoints
return int

NumSeeds public static property

public static int NumSeeds
return int

NumWater public static property

public static int NumWater
return int

bMoving public property

public bool bMoving
return bool

bPathfinding public property

public bool bPathfinding
return bool

power public static property

public static Power power
return Power