C# Class DTStrike.MyBot.Game

Mostrar archivo Open project: Unexpected/dtstrike Class Usage Examples

Public Properties

Property Type Description
fleets List
planets List

Public Methods

Method Description
Game ( List data ) : System
distance ( int sourcePlanet, int destinationPlanet ) : int
findClosestMilitaryPlanet ( Planet sourcePlanet ) : MilitaryPlanet
findClosestMilitaryPlanet ( int sourcePlanet ) : MilitaryPlanet
finishTurn ( ) : void
getEnemyFleets ( ) : List
getEnemyPlanets ( ) : List
getFleet ( int fleetID ) : Fleet
getFleets ( ) : List
getMyEconomicPlanets ( ) : List
getMyFleets ( ) : List
getMyMilitaryFleets ( ) : List
getMyMilitaryPlanets ( ) : List
getMyPlanets ( ) : List
getNeutralPlanets ( ) : List
getNotMyPlanets ( ) : List
getPlanet ( int planetID ) : Planet
getPlanets ( ) : List
isAlive ( int id ) : bool
issueOrder ( Planet source, Planet dest, int numShips ) : void
issueOrder ( int sourcePlanet, int destinationPlanet, int numShips ) : void
numFleets ( ) : int
numPlanets ( ) : int
numShips ( int playerID ) : int
playerFleets ( int playerID ) : List
playerFleets ( int playerID, System.Boolean militaryFleets ) : List
playerPlanets ( int playerID, System.Boolean militaryPlanets ) : List

Private Methods

Method Description
parse ( List data ) : int

Method Details

Game() public method

public Game ( List data ) : System
data List
return System

distance() public method

public distance ( int sourcePlanet, int destinationPlanet ) : int
sourcePlanet int
destinationPlanet int
return int

findClosestMilitaryPlanet() public method

public findClosestMilitaryPlanet ( Planet sourcePlanet ) : MilitaryPlanet
sourcePlanet Planet
return MilitaryPlanet

findClosestMilitaryPlanet() public method

public findClosestMilitaryPlanet ( int sourcePlanet ) : MilitaryPlanet
sourcePlanet int
return MilitaryPlanet

finishTurn() public method

public finishTurn ( ) : void
return void

getEnemyFleets() public method

public getEnemyFleets ( ) : List
return List

getEnemyPlanets() public method

public getEnemyPlanets ( ) : List
return List

getFleet() public method

public getFleet ( int fleetID ) : Fleet
fleetID int
return Fleet

getFleets() public method

public getFleets ( ) : List
return List

getMyEconomicPlanets() public method

public getMyEconomicPlanets ( ) : List
return List

getMyFleets() public method

public getMyFleets ( ) : List
return List

getMyMilitaryFleets() public method

public getMyMilitaryFleets ( ) : List
return List

getMyMilitaryPlanets() public method

public getMyMilitaryPlanets ( ) : List
return List

getMyPlanets() public method

public getMyPlanets ( ) : List
return List

getNeutralPlanets() public method

public getNeutralPlanets ( ) : List
return List

getNotMyPlanets() public method

public getNotMyPlanets ( ) : List
return List

getPlanet() public method

public getPlanet ( int planetID ) : Planet
planetID int
return Planet

getPlanets() public method

public getPlanets ( ) : List
return List

isAlive() public method

public isAlive ( int id ) : bool
id int
return bool

issueOrder() public method

public issueOrder ( Planet source, Planet dest, int numShips ) : void
source Planet
dest Planet
numShips int
return void

issueOrder() public method

public issueOrder ( int sourcePlanet, int destinationPlanet, int numShips ) : void
sourcePlanet int
destinationPlanet int
numShips int
return void

numFleets() public method

public numFleets ( ) : int
return int

numPlanets() public method

public numPlanets ( ) : int
return int

numShips() public method

public numShips ( int playerID ) : int
playerID int
return int

playerFleets() public method

public playerFleets ( int playerID ) : List
playerID int
return List

playerFleets() public method

public playerFleets ( int playerID, System.Boolean militaryFleets ) : List
playerID int
militaryFleets System.Boolean
return List

playerPlanets() public method

public playerPlanets ( int playerID, System.Boolean militaryPlanets ) : List
playerID int
militaryPlanets System.Boolean
return List

Property Details

fleets public_oe property

public List fleets
return List

planets public_oe property

public List planets
return List