C# Class Terrarium.Hosting.GameScheduler

Inheritance: System.MarshalByRefObject, IGameScheduler
Mostra file Open project: eugeniomiro/Terrarium

Public Methods

Method Description
AbortThread ( object arg ) : void
Add ( OrganismBase.Organism org, string id ) : void
Close ( ) : void
CompleteOrganismDeserialization ( ) : void
Create ( Type species, string id ) : void
DeserializeOrganisms ( Stream stream ) : void
GameScheduler ( ) : System
GatherTickActions ( ) : TickActions
GetOrganism ( string id ) : OrganismBase.Organism
GetOrganismTimingReport ( string organismID ) : string
Remove ( string organismID ) : void
SerializeOrganisms ( Stream stream ) : void
TemporarilySuspendBlacklisting ( ) : void
Tick ( ) : void

Private Methods

Method Description
ActivateBug ( ) : void
CloseHandle ( IntPtr hObject ) : bool
DuplicateHandle ( IntPtr hSourceProcessHandle, IntPtr hSourceHandle, IntPtr hTargetProcessHandle, IntPtr &lpTargetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions ) : bool
GetCurrentProcess ( ) : IntPtr
GetCurrentThread ( ) : IntPtr
GetThreadTimes ( IntPtr hThread, System.Runtime.InteropServices.ComTypes.FILETIME &lpCreationTime, System.Runtime.InteropServices.ComTypes.FILETIME &lpExitTime, System.Runtime.InteropServices.ComTypes.FILETIME &lpKernelTime, System.Runtime.InteropServices.ComTypes.FILETIME &lpUserTime ) : int
RunAnimalWithDeadlockDetection ( OrganismWrapper currentAnimal ) : void
cancelTimer ( ) : void
getAnimalThreadTime ( System.Int64 &kernel, System.Int64 &user ) : bool

Determines how much actual kernel and user time this thread has actually gotten

handleRestartWithoutBlacklist ( bool blacklist, bool shutdownWithoutBlacklist ) : void
handleRestartsAndBlacklist ( OrganismWrapper currentAnimal, bool blacklist ) : void
startTimer ( ) : void
traceEventHandler ( object sender ) : void

Method Details

AbortThread() public method

public AbortThread ( object arg ) : void
arg object
return void

Add() public method

public Add ( OrganismBase.Organism org, string id ) : void
org OrganismBase.Organism
id string
return void

Close() public method

public Close ( ) : void
return void

CompleteOrganismDeserialization() public method

public CompleteOrganismDeserialization ( ) : void
return void

Create() public method

public Create ( Type species, string id ) : void
species System.Type
id string
return void

DeserializeOrganisms() public method

public DeserializeOrganisms ( Stream stream ) : void
stream Stream
return void

GameScheduler() public method

public GameScheduler ( ) : System
return System

GatherTickActions() public method

public GatherTickActions ( ) : TickActions
return Terrarium.Game.TickActions

GetOrganism() public method

public GetOrganism ( string id ) : OrganismBase.Organism
id string
return OrganismBase.Organism

GetOrganismTimingReport() public method

public GetOrganismTimingReport ( string organismID ) : string
organismID string
return string

Remove() public method

public Remove ( string organismID ) : void
organismID string
return void

SerializeOrganisms() public method

public SerializeOrganisms ( Stream stream ) : void
stream Stream
return void

TemporarilySuspendBlacklisting() public method

public TemporarilySuspendBlacklisting ( ) : void
return void

Tick() public method

public Tick ( ) : void
return void