C# Класс MyGame.StartScreen

This class represent the Start(pause) Screen that show on startup and on pausing the game having options to start a new game,continue , go to help or credit screen or change the difficulty or exit
Наследование: Screen
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Difficulty Constants.Difficulties
continueEnabled bool

Открытые методы

Метод Описание
Draw ( GameTime gameTime ) : void

This method renders the current state.

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

Allows the game component to update itself.

Описание методов

Draw() публичный Метод

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
Результат void

StartScreen() публичный Метод

public StartScreen ( 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

Описание свойств

Difficulty публичное статическое свойство

public static Constants.Difficulties Difficulty
Результат Constants.Difficulties

continueEnabled публичное статическое свойство

public static bool continueEnabled
Результат bool