C# Class _1942.HighScore

Datei anzeigen Open project: Hoobler/Projekt1 Class Usage Examples

Public Methods

Method Description
AddHighScore ( string name, int score ) : void
Draw ( SpriteBatch spriteBatch ) : void
HighScore ( string ListFile ) : System
RetreiveHighScore ( ) : void

Retreives the Highscore list from the .xml file that contains the top 10 high scores

Update ( GameTime gameTime ) : void

Private Methods

Method Description
DataAccess ( ) : void
DeleteHighScore ( ) : void

Used to delete a highscore based on it's placement in the highscore list

SortHighScore ( ) : void
TextLenght ( string String ) : Vector2
WriteHighScore ( string _name, int _score, int _placement ) : void

Takes the inputed highscore and name of the player and add it's to the high scorelist

Method Details

AddHighScore() public method

public AddHighScore ( string name, int score ) : void
name string
score int
return void

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

HighScore() public method

public HighScore ( string ListFile ) : System
ListFile string
return System

RetreiveHighScore() public method

Retreives the Highscore list from the .xml file that contains the top 10 high scores
public RetreiveHighScore ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void