C# Class MyPolarBear.GameObjects.PolarBear

Inheritance: System.Entity
Datei anzeigen 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_oe static_oe property

public static int CurHitPoints
return int

IsAlive public_oe property

public bool IsAlive
return bool

MaxHitPoints public_oe static_oe property

public static int MaxHitPoints
return int

NumSeeds public_oe static_oe property

public static int NumSeeds
return int

NumWater public_oe static_oe property

public static int NumWater
return int

bMoving public_oe property

public bool bMoving
return bool

bPathfinding public_oe property

public bool bPathfinding
return bool

power public_oe static_oe property

public static Power power
return Power