C# Class MyGame.Weapon

This class represent the weapon attached to the player
Inheritance: CDrawableComponent
Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

This method renders the current state.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Weapon ( MyGame game, Player player, Model model, Unit unit ) : System

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

Update() public method

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

Weapon() public method

public Weapon ( MyGame game, Player player, Model model, Unit unit ) : System
game MyGame
player Player
model Microsoft.Xna.Framework.Graphics.Model
unit Unit
return System