C# Class Shooter.Entities.Character

Inheritance: Entity
Mostra file Open project: JoeyTheAsian/Just-Force Class Usage Examples

Protected Properties

Property Type Description
cont Microsoft.Xna.Framework.Content.ContentManager
frame int
frameLevel int
framesElapsed int
health int
isMeleeing bool
isSprinting bool
maxHealth int
numOfFrames int
stamina double
timePerFrame int
weapon Shooter.Controls.Weapon

Public Methods

Method Description
Character ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
Character ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, double dir, string t, bool c, Rectangle r ) : System
Character ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r ) : System
CheckHealth ( ) : bool
CheckStamina ( ) : bool
UpdateAnimation ( double time ) : void
UpdateStamina ( int time ) : void

Method Details

Character() public method

public Character ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
return System

Character() public method

public Character ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, double dir, string t, bool c, Rectangle r ) : System
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
dir double
t string
c bool
r Microsoft.Xna.Framework.Rectangle
return System

Character() public method

public Character ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r ) : System
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
t string
r Microsoft.Xna.Framework.Rectangle
return System

CheckHealth() public method

public CheckHealth ( ) : bool
return bool

CheckStamina() public method

public CheckStamina ( ) : bool
return bool

UpdateAnimation() public method

public UpdateAnimation ( double time ) : void
time double
return void

UpdateStamina() public method

public UpdateStamina ( int time ) : void
time int
return void

Property Details

cont protected_oe property

protected ContentManager,Microsoft.Xna.Framework.Content cont
return Microsoft.Xna.Framework.Content.ContentManager

frame protected_oe property

protected int frame
return int

frameLevel protected_oe property

protected int frameLevel
return int

framesElapsed protected_oe property

protected int framesElapsed
return int

health protected_oe property

protected int health
return int

isMeleeing protected_oe property

protected bool isMeleeing
return bool

isSprinting protected_oe property

protected bool isSprinting
return bool

maxHealth protected_oe property

protected int maxHealth
return int

numOfFrames protected_oe property

protected int numOfFrames
return int

stamina protected_oe property

protected double stamina
return double

timePerFrame protected_oe property

protected int timePerFrame
return int

weapon protected_oe property

protected Weapon,Shooter.Controls weapon
return Shooter.Controls.Weapon