C# Класс GPSTD_RM.Game1

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

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

Свойство Тип Описание
StartTime System.DateTime
bingMapsViewer BingMapsViewer
currentLocation GeoCoordinate
currentState GeoPositionStatus
display_victory bool
finger Microsoft.Xna.Framework.Rectangle
fingerPosition Vector2
font Microsoft.Xna.Framework.Graphics.SpriteFont
gameStartTime double
graphics GraphicsDeviceManager
locationToFocusOn String
money_text double
numSpawners int
paused bool
score int
screen Screen
screens Screens
selected Selected
sfx SFX
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
startingCoordinate GeoCoordinate
startingCoordinateXY Vector2
time int
total_lives int
watcher GeoCoordinateWatcher

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

Метод Описание
AddScore ( int newscore ) : void

Add a score value to the list and sort the list.

FocusOnLocationAsync ( string locationToFocusOn ) : void

TODO

Game1 ( ) : System
GotSearchResult ( object sender, OpenReadCompletedEventArgs e ) : void

TODO

LoadLinesFromFile ( string fileName ) : LinkedList

Get a list of strings from a file, corresponding to each line.

LoadScores ( ) : List

Read scores from a file.

LocationSelected ( IAsyncResult result ) : void

TODO

SaveScores ( List scores ) : void

Write scores to a file.

geoWatcher_Position ( object sender, GeoPositionChangedEventArgs e ) : void

TODO

geoWatcher_StatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void

TODO

touch ( ) : void

Process touch events.

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

Метод Описание
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

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

OnExiting ( object sender, EventArgs args ) : void

Exit handler.

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.

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

Метод Описание
ReceivedLocationCoordinates ( object sender, OpenReadCompletedEventArgs e ) : void

Event handler called when location coordinates are received.

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

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

Add a score value to the list and sort the list.
public AddScore ( int newscore ) : void
newscore int The new score value.
Результат void

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

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

TODO
public FocusOnLocationAsync ( string locationToFocusOn ) : void
locationToFocusOn string
Результат void

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

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

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

TODO
public GotSearchResult ( object sender, OpenReadCompletedEventArgs e ) : void
sender object
e System.Net.OpenReadCompletedEventArgs
Результат void

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() защищенный Метод

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

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

Get a list of strings from a file, corresponding to each line.
public LoadLinesFromFile ( string fileName ) : LinkedList
fileName string The filename to be read.
Результат LinkedList

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

Read scores from a file.
public LoadScores ( ) : List
Результат List

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

TODO
public LocationSelected ( IAsyncResult result ) : void
result IAsyncResult
Результат void

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

Exit handler.
protected OnExiting ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

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

Write scores to a file.
public SaveScores ( List scores ) : void
scores List A list of scores.
Результат 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

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

TODO
public geoWatcher_Position ( object sender, GeoPositionChangedEventArgs e ) : void
sender object
e GeoPositionChangedEventArgs
Результат void

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

TODO
public geoWatcher_StatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void
sender object
e GeoPositionStatusChangedEventArgs
Результат void

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

Process touch events.
public touch ( ) : void
Результат void

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

StartTime публичное свойство

public DateTime,System StartTime
Результат System.DateTime

bingMapsViewer публичное свойство

public BingMapsViewer,GPSTD_RM bingMapsViewer
Результат BingMapsViewer

currentLocation публичное свойство

public GeoCoordinate currentLocation
Результат GeoCoordinate

currentState публичное свойство

public GeoPositionStatus currentState
Результат GeoPositionStatus

display_victory публичное свойство

public bool display_victory
Результат bool

finger публичное свойство

A hitbox for the finger!
public Rectangle,Microsoft.Xna.Framework finger
Результат Microsoft.Xna.Framework.Rectangle

fingerPosition публичное свойство

Current location of the finger on screen.
public Vector2 fingerPosition
Результат Vector2

font публичное свойство

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

gameStartTime публичное свойство

public double gameStartTime
Результат double

graphics публичное свойство

public GraphicsDeviceManager graphics
Результат GraphicsDeviceManager

locationToFocusOn публичное свойство

public String locationToFocusOn
Результат String

money_text публичное свойство

public double money_text
Результат double

numSpawners публичное свойство

public int numSpawners
Результат int

paused публичное свойство

public bool paused
Результат bool

score публичное свойство

public int score
Результат int

screen публичное свойство

public Screen,GPSTD_RM screen
Результат Screen

screens публичное свойство

public Screens,GPSTD_RM screens
Результат Screens

selected публичное свойство

public Selected selected
Результат Selected

sfx публичное свойство

public SFX,GPSTD_RM sfx
Результат SFX

spriteBatch публичное свойство

public SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Результат Microsoft.Xna.Framework.Graphics.SpriteBatch

startingCoordinate публичное свойство

public GeoCoordinate startingCoordinate
Результат GeoCoordinate

startingCoordinateXY публичное свойство

public Vector2 startingCoordinateXY
Результат Vector2

time публичное свойство

public int time
Результат int

total_lives публичное свойство

public int total_lives
Результат int

watcher публичное свойство

public GeoCoordinateWatcher watcher
Результат GeoCoordinateWatcher