C# Class MyGame.Weapon

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

Méthodes publiques

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

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

Update() public méthode

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

Weapon() public méthode

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