C# Class DivineRightGame.GameState

Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Свойство Type Description
IsRunningHeavyProcessing bool
MinuteValueChanged EventHandler
SAVEPATH string

Méthodes publiques

Méthode Description
DayChanged ( object sender, EventArgs e ) : void

When the day changes we need to do some things

IncrementGameTime ( DRTimeComponent timeComponent, int value ) : void

Incremements the Game Time by an amount of minutes

LoadGame ( ) : void

Loads the game from the folder. There will only ever be one such savegame at a time.

MinuteChanged ( object sender, EventArgs e ) : void
MonthChanged ( object sender, EventArgs e ) : void
SaveFileExists ( ) : bool

Returns true if the save file exists

SaveGame ( ) : void

Saves the Game into the folder. There will only be one such savegame at a time.

Private Methods

Méthode Description
GameState ( ) : System

Method Details

DayChanged() public static méthode

When the day changes we need to do some things
public static DayChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

IncrementGameTime() public static méthode

Incremements the Game Time by an amount of minutes
public static IncrementGameTime ( DRTimeComponent timeComponent, int value ) : void
timeComponent DRTimeComponent
value int
Résultat void

LoadGame() public static méthode

Loads the game from the folder. There will only ever be one such savegame at a time.
public static LoadGame ( ) : void
Résultat void

MinuteChanged() public static méthode

public static MinuteChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

MonthChanged() public static méthode

public static MonthChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

SaveFileExists() public static méthode

Returns true if the save file exists
public static SaveFileExists ( ) : bool
Résultat bool

SaveGame() public static méthode

Saves the Game into the folder. There will only be one such savegame at a time.
public static SaveGame ( ) : void
Résultat void

Property Details

IsRunningHeavyProcessing public_oe static_oe property

If the game is running heavy processing we store it here, so we can ignore user updates and show him something
public static bool IsRunningHeavyProcessing
Résultat bool

MinuteValueChanged public_oe static_oe property

Event fires whenever the minute changes.
public static EventHandler MinuteValueChanged
Résultat EventHandler

SAVEPATH public_oe static_oe property

public static string SAVEPATH
Résultat string