C# Class RTS.Input.AI

Inheritance: RTSEngine.Interfaces.ACInputController
Show file Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Properties

Property Type Description
player RTSEngine.Data.Team.RTSTeam
playerIndex int
random System.Random
spawnCap int
squads List>
unitSpawnP int[]

Public Methods

Method Description
AI ( ) : System
Begin ( ) : void
CreateVoxels ( VoxAtlas atlas ) : List
Deserialize ( BinaryReader s ) : void
Dispose ( ) : void
Init ( GameState s, int ti, object args ) : void
LESave ( VoxWorld world, int w, int h, DirectoryInfo dir ) : void
OnBuildingDestruction ( IEntity b ) : void
OnBuildingSpawn ( RTSBuilding b ) : void
OnUnitDeath ( IEntity u ) : void
OnUnitSpawn ( RTSUnit u ) : void
Serialize ( BinaryWriter s ) : void
SetTarget ( List units, IEntity t ) : void

Private Methods

Method Description
GetClosestTarget ( List squad ) : IEntity
GetSquadPos ( List squad ) : Vector2
IncreaseActive ( int n ) : void
UpdateLevel ( ) : void
WorkThread ( ) : void

Method Details

AI() public method

public AI ( ) : System
return System

Begin() public method

public Begin ( ) : void
return void

CreateVoxels() public method

public CreateVoxels ( VoxAtlas atlas ) : List
atlas Grey.Vox.VoxAtlas
return List

Deserialize() public method

public Deserialize ( BinaryReader s ) : void
s System.IO.BinaryReader
return void

Dispose() public method

public Dispose ( ) : void
return void

Init() public method

public Init ( GameState s, int ti, object args ) : void
s RTSEngine.Data.GameState
ti int
args object
return void

LESave() public method

public LESave ( VoxWorld world, int w, int h, DirectoryInfo dir ) : void
world Grey.Vox.VoxWorld
w int
h int
dir System.IO.DirectoryInfo
return void

OnBuildingDestruction() public method

public OnBuildingDestruction ( IEntity b ) : void
b IEntity
return void

OnBuildingSpawn() public method

public OnBuildingSpawn ( RTSBuilding b ) : void
b RTSEngine.Data.Team.RTSBuilding
return void

OnUnitDeath() public method

public OnUnitDeath ( IEntity u ) : void
u IEntity
return void

OnUnitSpawn() public method

public OnUnitSpawn ( RTSUnit u ) : void
u RTSEngine.Data.Team.RTSUnit
return void

Serialize() public method

public Serialize ( BinaryWriter s ) : void
s System.IO.BinaryWriter
return void

SetTarget() public method

public SetTarget ( List units, IEntity t ) : void
units List
t IEntity
return void

Property Details

player public property

public RTSTeam,RTSEngine.Data.Team player
return RTSEngine.Data.Team.RTSTeam

playerIndex public property

public int playerIndex
return int

random public property

public Random,System random
return System.Random

spawnCap public property

public int spawnCap
return int

squads public property

public List> squads
return List>

unitSpawnP public property

public int[] unitSpawnP
return int[]