C# Class MyGame.MonstersManager

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
ファイルを表示 Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

This method renders the current state.

MonstersManager ( MyGame game ) : System
Update ( GameTime gameTime ) : void

Allows the component to run logic.

addEvent ( Event ev ) : void
checkCollisionWithBullet ( Unit unit ) : bool
reinitializeMonstersTypes ( ) : void

Private Methods

Method Description
addEnemy ( ) : void

Method Details

Draw() public method

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
return void

MonstersManager() public method

public MonstersManager ( MyGame game ) : System
game MyGame
return System

Update() public method

Allows the component to run logic.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The gametime.
return void

addEvent() public method

public addEvent ( Event ev ) : void
ev Event
return void

checkCollisionWithBullet() public method

public checkCollisionWithBullet ( Unit unit ) : bool
unit Unit
return bool

reinitializeMonstersTypes() public method

public reinitializeMonstersTypes ( ) : void
return void