C# 클래스 MyGame.Weapon

This class represent the weapon attached to the player
상속: CDrawableComponent
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 메소드들

메소드 설명
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