C# 클래스 MyGame.CDrawableComponent

This class represent a custom Drawable Component that has a CModel that handle drawing and a Unit that hanlde updating of the Drawable game component.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project

공개 프로퍼티들

프로퍼티 타입 설명
cModel CModel
unit Unit

보호된 프로퍼티들

프로퍼티 타입 설명
myGame MyGame

공개 메소드들

메소드 설명
CDrawableComponent ( MyGame game, Unit unit, CModel model ) : System
Draw ( GameTime gameTime ) : void

This method renders the current state.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

메소드 상세

CDrawableComponent() 공개 메소드

public CDrawableComponent ( MyGame game, Unit unit, CModel model ) : System
game MyGame
unit Unit
model CModel
리턴 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

프로퍼티 상세

cModel 공개적으로 프로퍼티

public CModel,MyGame cModel
리턴 CModel

myGame 보호되어 있는 프로퍼티

protected MyGame,MyGame myGame
리턴 MyGame

unit 공개적으로 프로퍼티

public Unit,MyGame unit
리턴 Unit