C# Class RTSEngine.Data.Team.RTSTeam

Show file Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Methods

Method Description
AddBuilding ( int type, Vector2 pos ) : RTSBuilding
AddSquad ( ) : RTSSquad
AddUnit ( int type, Vector2 pos ) : RTSUnit
Deserialize ( BinaryReader s, int index, GameState state ) : RTSTeam
RTSTeam ( int i, int t ) : System
RemoveAll ( Predicate f, Action fRemoval ) : void
RemoveAll ( Predicate f ) : void
RemoveAll ( Predicate f, Action fRemoval ) : void
Serialize ( BinaryWriter s, RTSTeam team ) : void

Private Methods

Method Description
OnBuildingFinished ( RTSBuilding b ) : void

Method Details

AddBuilding() public method

public AddBuilding ( int type, Vector2 pos ) : RTSBuilding
type int
pos Vector2
return RTSBuilding

AddSquad() public method

public AddSquad ( ) : RTSSquad
return RTSSquad

AddUnit() public method

public AddUnit ( int type, Vector2 pos ) : RTSUnit
type int
pos Vector2
return RTSUnit

Deserialize() public static method

public static Deserialize ( BinaryReader s, int index, GameState state ) : RTSTeam
s System.IO.BinaryReader
index int
state GameState
return RTSTeam

RTSTeam() public method

public RTSTeam ( int i, int t ) : System
i int
t int
return System

RemoveAll() public method

public RemoveAll ( Predicate f, Action fRemoval ) : void
f Predicate
fRemoval Action
return void

RemoveAll() public method

public RemoveAll ( Predicate f ) : void
f Predicate
return void

RemoveAll() public method

public RemoveAll ( Predicate f, Action fRemoval ) : void
f Predicate
fRemoval Action
return void

Serialize() public static method

public static Serialize ( BinaryWriter s, RTSTeam team ) : void
s System.IO.BinaryWriter
team RTSTeam
return void