C# Class MyGame.Screen

This class represent Screen that draws text on Screen having 3 different sized fonts that can be used
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project

Protected Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
Screen ( MyGame game, int delayedActionDelay ) : System
reInitialize ( ) : void

Méthodes protégées

Méthode Description
checkSilencePeriod ( GameTime gameTime ) : bool
findCenteredPos ( String text, SpriteFont font ) : Vector2

Method Details

Screen() public méthode

public Screen ( MyGame game, int delayedActionDelay ) : System
game MyGame
delayedActionDelay int
Résultat System

checkSilencePeriod() protected méthode

protected checkSilencePeriod ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
Résultat bool

findCenteredPos() protected méthode

protected findCenteredPos ( String text, SpriteFont font ) : Vector2
text String
font Microsoft.Xna.Framework.Graphics.SpriteFont
Résultat Vector2

reInitialize() public méthode

public reInitialize ( ) : void
Résultat void

Property Details

background protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics background
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

backgroundColor protected_oe property

protected Color backgroundColor
Résultat Color

bigFont protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics bigFont
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

delayedAction protected_oe property

protected DelayedAction,Helper delayedAction
Résultat Helper.DelayedAction

mediumFont protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics mediumFont
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

menuItemColor protected_oe property

protected Color menuItemColor
Résultat Color

myGame protected_oe property

protected MyGame,MyGame myGame
Résultat MyGame

silencePeriod protected_oe property

protected float silencePeriod
Résultat float

smallFont protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics smallFont
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

spriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch