C# Class BalloonsPop.Highscore.HighscoreHandlingStrategies.XmlHandlingStrategy

Implements high score handling (saving and loading) in an XML format
Inheritance: IHighscoreHandlingStrategy
Datei anzeigen Open project: Baloons-Pop-4/Main

Public Methods

Method Description
Load ( ) : IHighscoreTable

Loads a IHighscoreTable from a XML formatted file.

Save ( IHighscoreTable table ) : void

Saves a IHighscoreTable to a XML formatted file.

XmlHandlingStrategy ( string fileName ) : System

Initializes a new instance of the XmlHandlingStrategy class.

Method Details

Load() public method

Loads a IHighscoreTable from a XML formatted file.
public Load ( ) : IHighscoreTable
return IHighscoreTable

Save() public method

Saves a IHighscoreTable to a XML formatted file.
public Save ( IHighscoreTable table ) : void
table IHighscoreTable The concrete implementation of a table.
return void

XmlHandlingStrategy() public method

Initializes a new instance of the XmlHandlingStrategy class.
public XmlHandlingStrategy ( string fileName ) : System
fileName string The name of the file to be used for loading and saving.
return System