C# 클래스 MyGame.Screen

This class represent Screen that draws text on Screen having 3 different sized fonts that can be used
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project

보호된 프로퍼티들

프로퍼티 타입 설명
background Microsoft.Xna.Framework.Graphics.Texture2D
backgroundColor Color
bigFont Microsoft.Xna.Framework.Graphics.SpriteFont
delayedAction Helper.DelayedAction
mediumFont Microsoft.Xna.Framework.Graphics.SpriteFont
menuItemColor Color
myGame MyGame
silencePeriod float
smallFont Microsoft.Xna.Framework.Graphics.SpriteFont
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

공개 메소드들

메소드 설명
Screen ( MyGame game, int delayedActionDelay ) : System
reInitialize ( ) : void

보호된 메소드들

메소드 설명
checkSilencePeriod ( GameTime gameTime ) : bool
findCenteredPos ( String text, SpriteFont font ) : Vector2

메소드 상세

Screen() 공개 메소드

public Screen ( MyGame game, int delayedActionDelay ) : System
game MyGame
delayedActionDelay int
리턴 System

checkSilencePeriod() 보호된 메소드

protected checkSilencePeriod ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
리턴 bool

findCenteredPos() 보호된 메소드

protected findCenteredPos ( String text, SpriteFont font ) : Vector2
text String
font Microsoft.Xna.Framework.Graphics.SpriteFont
리턴 Vector2

reInitialize() 공개 메소드

public reInitialize ( ) : void
리턴 void

프로퍼티 상세

background 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics background
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

backgroundColor 보호되어 있는 프로퍼티

protected Color backgroundColor
리턴 Color

bigFont 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics bigFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

delayedAction 보호되어 있는 프로퍼티

protected DelayedAction,Helper delayedAction
리턴 Helper.DelayedAction

mediumFont 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics mediumFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

menuItemColor 보호되어 있는 프로퍼티

protected Color menuItemColor
리턴 Color

myGame 보호되어 있는 프로퍼티

protected MyGame,MyGame myGame
리턴 MyGame

silencePeriod 보호되어 있는 프로퍼티

protected float silencePeriod
리턴 float

smallFont 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics smallFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

spriteBatch 보호되어 있는 프로퍼티

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
리턴 Microsoft.Xna.Framework.Graphics.SpriteBatch