C# Class MyPolarBear.GameObjects.PolarBear

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

Méthodes publiques

Свойство Type Description
CurHitPoints int
IsAlive bool
MaxHitPoints int
NumSeeds int
NumWater int
bMoving bool
bPathfinding bool
power Power

Méthodes publiques

Méthode 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

Méthode Description
giveAttackCommand ( String targetType ) : void

Method Details

Draw() public méthode

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

HitLanded() public méthode

public HitLanded ( Projectile attack, ITargetable hit ) : void
attack Projectile
hit ITargetable
Résultat void

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

PolarBear() public méthode

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

ShootProjectile() public méthode

public ShootProjectile ( Vector2 direction ) : Projectile
direction Vector2
Résultat Projectile

SwitchPowers() public méthode

public SwitchPowers ( ) : void
Résultat void

TakeDamage() public static méthode

public static TakeDamage ( int amount, System.Entity source ) : void
amount int
source System.Entity
Résultat void

Update() public méthode

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

Property Details

CurHitPoints public_oe static_oe property

public static int CurHitPoints
Résultat int

IsAlive public_oe property

public bool IsAlive
Résultat bool

MaxHitPoints public_oe static_oe property

public static int MaxHitPoints
Résultat int

NumSeeds public_oe static_oe property

public static int NumSeeds
Résultat int

NumWater public_oe static_oe property

public static int NumWater
Résultat int

bMoving public_oe property

public bool bMoving
Résultat bool

bPathfinding public_oe property

public bool bPathfinding
Résultat bool

power public_oe static_oe property

public static Power power
Résultat Power