C# Класс MyGame.Weapon

This class represent the weapon attached to the player
Наследование: CDrawableComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Draw() публичный Метод

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
Результат void

Update() публичный Метод

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void

Weapon() публичный Метод

public Weapon ( MyGame game, Player player, Model model, Unit unit ) : System
game MyGame
player Player
model Microsoft.Xna.Framework.Graphics.Model
unit Unit
Результат System