C# Class RTS.Input.AI

Inheritance: RTSEngine.Interfaces.ACInputController
Afficher le fichier Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Méthodes publiques

Свойство Type Description
player RTSEngine.Data.Team.RTSTeam
playerIndex int
random System.Random
spawnCap int
squads List>
unitSpawnP int[]

Méthodes publiques

Méthode 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

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

Method Details

AI() public méthode

public AI ( ) : System
Résultat System

Begin() public méthode

public Begin ( ) : void
Résultat void

CreateVoxels() public méthode

public CreateVoxels ( VoxAtlas atlas ) : List
atlas Grey.Vox.VoxAtlas
Résultat List

Deserialize() public méthode

public Deserialize ( BinaryReader s ) : void
s System.IO.BinaryReader
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Init() public méthode

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

LESave() public méthode

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

OnBuildingDestruction() public méthode

public OnBuildingDestruction ( IEntity b ) : void
b IEntity
Résultat void

OnBuildingSpawn() public méthode

public OnBuildingSpawn ( RTSBuilding b ) : void
b RTSEngine.Data.Team.RTSBuilding
Résultat void

OnUnitDeath() public méthode

public OnUnitDeath ( IEntity u ) : void
u IEntity
Résultat void

OnUnitSpawn() public méthode

public OnUnitSpawn ( RTSUnit u ) : void
u RTSEngine.Data.Team.RTSUnit
Résultat void

Serialize() public méthode

public Serialize ( BinaryWriter s ) : void
s System.IO.BinaryWriter
Résultat void

SetTarget() public méthode

public SetTarget ( List units, IEntity t ) : void
units List
t IEntity
Résultat void

Property Details

player public_oe property

public RTSTeam,RTSEngine.Data.Team player
Résultat RTSEngine.Data.Team.RTSTeam

playerIndex public_oe property

public int playerIndex
Résultat int

random public_oe property

public Random,System random
Résultat System.Random

spawnCap public_oe property

public int spawnCap
Résultat int

squads public_oe property

public List> squads
Résultat List>

unitSpawnP public_oe property

public int[] unitSpawnP
Résultat int[]