C# Class WindowsGame1.Monster

显示文件 Open project: WINPROG20152016/Quiogue_TaptitanXNA Class Usage Examples

Public Properties

Property Type Description
CurHp float
ToHp float

Public Methods

Method Description
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
EnemyDie ( ) : void
LoadContent ( ) : void
Monster ( Microsoft.Xna.Framework.Content.ContentManager content, Level level ) : System
Update ( GameTime gameTime ) : void
getHit ( GameTime gameTime ) : void
spawnMoney ( ) : void
takeDamage ( int damageTaken ) : void

Private Methods

Method Description
callBoss ( int stageNum ) : void
setHp ( int isBs ) : void

Method Details

Draw() public method

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

EnemyDie() public method

public EnemyDie ( ) : void
return void

LoadContent() public method

public LoadContent ( ) : void
return void

Monster() public method

public Monster ( Microsoft.Xna.Framework.Content.ContentManager content, Level level ) : System
content Microsoft.Xna.Framework.Content.ContentManager
level Level
return System

Update() public method

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

getHit() public method

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

spawnMoney() public method

public spawnMoney ( ) : void
return void

takeDamage() public method

public takeDamage ( int damageTaken ) : void
damageTaken int
return void

Property Details

CurHp public_oe property

public float CurHp
return float

ToHp public_oe property

public float ToHp
return float