C# 클래스 GPSTD_RM.Game1

This is the main type for your game
상속: Microsoft.Xna.Framework.Game
파일 보기 프로젝트 열기: dideler/gps-tower-defense 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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