C# Класс Tetris.Score

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
font SpriteFont
level int
recordPlayer string
recordScore int
sBatch SpriteBatch
value int

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

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

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Score ( Tetris.Game game, SpriteFont font ) : Microsoft.Xna.Framework

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

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

This is called when the game should draw itself.
public Draw ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Результат void

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

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
Результат void

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

public Score ( Tetris.Game game, SpriteFont font ) : Microsoft.Xna.Framework
game Tetris.Game
font SpriteFont
Результат Microsoft.Xna.Framework

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

font защищенное свойство

protected SpriteFont font
Результат SpriteFont

level защищенное свойство

protected int level
Результат int

recordPlayer защищенное свойство

protected string recordPlayer
Результат string

recordScore защищенное свойство

protected int recordScore
Результат int

sBatch защищенное свойство

protected SpriteBatch sBatch
Результат SpriteBatch

value защищенное свойство

protected int value
Результат int