C# 클래스 MyGame.ScoreBoard

This is a game component that implements IUpdateable.
상속: Microsoft.Xna.Framework.DrawableGameComponent, IEvent
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
score int

보호된 프로퍼티들

프로퍼티 타입 설명
events List

공개 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void

This method renders the current state.

ScoreBoard ( MyGame game ) : System
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

addEvent ( Event ev ) : void

Add event to the event queue

메소드 상세

Draw() 공개 메소드

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

ScoreBoard() 공개 메소드

public ScoreBoard ( MyGame game ) : System
game MyGame
리턴 System

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

addEvent() 공개 메소드

Add event to the event queue
public addEvent ( Event ev ) : void
ev Event Event to be added
리턴 void

프로퍼티 상세

events 보호되어 있는 프로퍼티

protected List events
리턴 List

score 공개적으로 프로퍼티

public int score
리턴 int