C# Class Geowigo.Models.WFCoreAdapter

Inheritance: Engine
Show file Open project: WFoundation/WF.Player.WinPhone Class Usage Examples

Public Methods

Method Description
InitAndRestoreCartridge ( string filename, string gwsFilename ) : WF.Player.Core.Cartridge

Resumes playing a Wherigo cartridge saved game.

InitAndRestoreCartridgeAsync ( string filename, string gwsFilename ) : Task

Resumes playing a Wherigo cartridge saved game asynchronously.

InitAndStartCartridge ( string filename ) : WF.Player.Core.Cartridge

Starts to play a Wherigo cartridge game.

InitAndStartCartridgeAsync ( string filename ) : Task

Starts to play a Wherigo cartridge game asynchronously.

Save ( CartridgeSavegame cs ) : void

Saves the game to a CartridgeSavegame object.

SaveAsync ( CartridgeSavegame cs ) : System.Threading.Tasks.Task

Saves the game to a CartridgeSavegame object asynchronously.

StartLogging ( WF logger ) : void

Associates a logger to this instance.

If a logger already is associated, it will be disposed.

StopAndResetAsync ( ) : System.Threading.Tasks.Task

Stops the game and then resets the engine asynchronously.

WFCoreAdapter ( ) : System

Protected Methods

Method Description
DisposeOverride ( bool disposeManagedResources ) : void
InitInstanceOverride ( ) : void

Private Methods

Method Description
ApplySensorData ( ) : void
Compass_CurrentValueChanged ( object sender, SensorReadingEventArgs e ) : void
DisposeLogger ( ) : void
GeoWatcher_PositionChanged ( object sender, GeoPositionChangedEventArgs e ) : void
GeoWatcher_StatusChanged ( object sender, GeoPositionStatusChangedEventArgs e ) : void
LogDebug ( string message, LogLevel level = LogLevel.Debug ) : void
OnCompassCalibrate ( object sender, CalibrationEventArgs e ) : void
OnIsCompassEnabledChanged ( bool value ) : void
ProcessCompass ( CompassReading compassReading ) : void
ProcessPosition ( GeoPosition position ) : void
RaisePlayerLocationChanged ( GeoCoordinate gc, double heading ) : void
RegisterCoreEventHandlers ( ) : void
WFCoreAdapter_LogMessageRequested ( object sender, LogMessageEventArgs e ) : void
WFCoreAdapter_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
WaitForGameState ( EngineGameState target ) : void

Method Details

DisposeOverride() protected method

protected DisposeOverride ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void

InitAndRestoreCartridge() public method

Resumes playing a Wherigo cartridge saved game.
public InitAndRestoreCartridge ( string filename, string gwsFilename ) : WF.Player.Core.Cartridge
filename string Filename of the cartridge in the isolated storage.
gwsFilename string Filename of the savegame to restore.
return WF.Player.Core.Cartridge

InitAndRestoreCartridgeAsync() public method

Resumes playing a Wherigo cartridge saved game asynchronously.
public InitAndRestoreCartridgeAsync ( string filename, string gwsFilename ) : Task
filename string Filename of the cartridge in the isolated storage.
gwsFilename string Filename of the savegame to restore.
return Task

InitAndStartCartridge() public method

Starts to play a Wherigo cartridge game.
public InitAndStartCartridge ( string filename ) : WF.Player.Core.Cartridge
filename string Filename of the cartridge in the isolated storage.
return WF.Player.Core.Cartridge

InitAndStartCartridgeAsync() public method

Starts to play a Wherigo cartridge game asynchronously.
public InitAndStartCartridgeAsync ( string filename ) : Task
filename string Filename of the cartridge in the isolated storage.
return Task

InitInstanceOverride() protected method

protected InitInstanceOverride ( ) : void
return void

Save() public method

Saves the game to a CartridgeSavegame object.
public Save ( CartridgeSavegame cs ) : void
cs CartridgeSavegame The CartridgeSavegame representing the savegame.
return void

SaveAsync() public method

Saves the game to a CartridgeSavegame object asynchronously.
public SaveAsync ( CartridgeSavegame cs ) : System.Threading.Tasks.Task
cs CartridgeSavegame The CartridgeSavegame representing the savegame.
return System.Threading.Tasks.Task

StartLogging() public method

Associates a logger to this instance.
If a logger already is associated, it will be disposed.
public StartLogging ( WF logger ) : void
logger WF
return void

StopAndResetAsync() public method

Stops the game and then resets the engine asynchronously.
public StopAndResetAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WFCoreAdapter() public method

public WFCoreAdapter ( ) : System
return System