C# Класс spaceconquest.Game1

This is the main type for your game ted's back
Наследование: Microsoft.Xna.Framework.Game
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Races List
contentManager Microsoft.Xna.Framework.Content.ContentManager
device GraphicsDevice
hextexture Microsoft.Xna.Framework.Graphics.Texture2D
jukeBox spaceconquest.Music_stuff.JukeBox
soundEffectBox SoundEffectBox
textFont Microsoft.Xna.Framework.Graphics.SpriteFont
thisgame Game1
x int
y int

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

Метод Описание
Game1 ( ) : System

Защищенные методы

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

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void
UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Приватные методы

Метод Описание
sorter ( String a, String b ) : int

LoadContent will be called once per game and is the place to load all of your content.

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

Draw() защищенный Метод

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

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

public Game1 ( ) : System
Результат System

Initialize() защищенный Метод

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
Результат void

LoadContent() защищенный Метод

protected LoadContent ( ) : void
Результат void

UnloadContent() защищенный Метод

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
Результат void

Update() защищенный Метод

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void

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

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

public static List Races
Результат List

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

public static ContentManager,Microsoft.Xna.Framework.Content contentManager
Результат Microsoft.Xna.Framework.Content.ContentManager

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

public static GraphicsDevice device
Результат GraphicsDevice

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

public static Texture2D,Microsoft.Xna.Framework.Graphics hextexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D

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

public static spaceconquest.Music_stuff.JukeBox jukeBox
Результат spaceconquest.Music_stuff.JukeBox

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

public static SoundEffectBox,spaceconquest soundEffectBox
Результат SoundEffectBox

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

public static SpriteFont,Microsoft.Xna.Framework.Graphics textFont
Результат Microsoft.Xna.Framework.Graphics.SpriteFont

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

public static Game1,spaceconquest thisgame
Результат Game1

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

public static int x
Результат int

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

public static int y
Результат int