C# Class RTSEngine.Data.GameState

Show file Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Properties

Property Type Description
activeTeams RTSEngine.Data.IndexedTeam[]
gtC ACGameTypeController
scrGTC ReflectedScript
tbMemBuildings RTSEngine.Algorithms.TimeBudget
teams RTSEngine.Data.Team.RTSTeam[]

Public Methods

Method Description
AddParticle ( Particle p ) : void
AddParticles ( IEnumerable p ) : void
Deserialize ( BinaryReader s, ReflectedScript>.Dictionary res, GameState state ) : void
GameState ( ) : System
GetParticles ( ) : List
IncrementFrame ( float dt ) : void
SendAlert ( string message, AlertLevel level ) : void
SendPopup ( string texFile, Rectangle destination ) : void
Serialize ( BinaryWriter s, GameState state ) : void
SetGrids ( LevelGrid lg ) : void
UpdateActiveTeams ( ) : void

Method Details

AddParticle() public method

public AddParticle ( Particle p ) : void
p Particle
return void

AddParticles() public method

public AddParticles ( IEnumerable p ) : void
p IEnumerable
return void

Deserialize() public static method

public static Deserialize ( BinaryReader s, ReflectedScript>.Dictionary res, GameState state ) : void
s System.IO.BinaryReader
res ReflectedScript>.Dictionary
state GameState
return void

GameState() public method

public GameState ( ) : System
return System

GetParticles() public method

public GetParticles ( ) : List
return List

IncrementFrame() public method

public IncrementFrame ( float dt ) : void
dt float
return void

SendAlert() public method

public SendAlert ( string message, AlertLevel level ) : void
message string
level AlertLevel
return void

SendPopup() public method

public SendPopup ( string texFile, Rectangle destination ) : void
texFile string
destination Microsoft.Xna.Framework.Rectangle
return void

Serialize() public static method

public static Serialize ( BinaryWriter s, GameState state ) : void
s System.IO.BinaryWriter
state GameState
return void

SetGrids() public method

public SetGrids ( LevelGrid lg ) : void
lg LevelGrid
return void

UpdateActiveTeams() public method

public UpdateActiveTeams ( ) : void
return void

Property Details

activeTeams public property

public IndexedTeam[],RTSEngine.Data activeTeams
return RTSEngine.Data.IndexedTeam[]

gtC public property

public ACGameTypeController gtC
return ACGameTypeController

scrGTC public property

public ReflectedScript scrGTC
return ReflectedScript

tbMemBuildings public property

public TimeBudget,RTSEngine.Algorithms tbMemBuildings
return RTSEngine.Algorithms.TimeBudget

teams public property

public RTSTeam[],RTSEngine.Data.Team teams
return RTSEngine.Data.Team.RTSTeam[]