C# Class spaceconquest.Ship

Inheritance: Unit
显示文件 Open project: cclay/spaceconquest Class Usage Examples

Public Properties

Property Type Description
dead bool
shiptype ShipType

Protected Properties

Property Type Description
currentAngle double
hoveringAcc float
hoveringHeight float
modelstring String
oldposition Vector3
speed int
targetangle double
targetangles Queue
targetpositions Queue
targetvector Vector3

Public Methods

Method Description
Draw ( Microsoft world, Microsoft view, Microsoft projection ) : void
DrawGhost ( Microsoft world, Microsoft view, Microsoft projection ) : void
GetBuildTime ( ) : int
GetMiningRobots ( ) : int
GetReachable ( ) : List
GetShipType ( ) : ShipType
HopOn ( Ship c ) : void
SetGhost ( Hex3D target ) : void
SetMiningRobots ( int n ) : void
Ship ( ShipType st ) : System
getSpeed ( ) : int
kill ( ) : void
move ( Hex3D target ) : void
upkeep ( ) : void

Private Methods

Method Description
getprefix ( ) : String
reachable ( Hex3D startHex, int r ) : List

Method Details

Draw() public method

public Draw ( Microsoft world, Microsoft view, Microsoft projection ) : void
world Microsoft
view Microsoft
projection Microsoft
return void

DrawGhost() public method

public DrawGhost ( Microsoft world, Microsoft view, Microsoft projection ) : void
world Microsoft
view Microsoft
projection Microsoft
return void

GetBuildTime() public method

public GetBuildTime ( ) : int
return int

GetMiningRobots() public method

public GetMiningRobots ( ) : int
return int

GetReachable() public method

public GetReachable ( ) : List
return List

GetShipType() public method

public GetShipType ( ) : ShipType
return ShipType

HopOn() public method

public HopOn ( Ship c ) : void
c Ship
return void

SetGhost() public method

public SetGhost ( Hex3D target ) : void
target Hex3D
return void

SetMiningRobots() public method

public SetMiningRobots ( int n ) : void
n int
return void

Ship() public method

public Ship ( ShipType st ) : System
st ShipType
return System

getSpeed() public method

public getSpeed ( ) : int
return int

kill() public method

public kill ( ) : void
return void

move() public method

public move ( Hex3D target ) : void
target Hex3D
return void

upkeep() public method

public upkeep ( ) : void
return void

Property Details

currentAngle protected_oe property

protected double currentAngle
return double

dead public_oe property

public bool dead
return bool

hoveringAcc protected_oe property

protected float hoveringAcc
return float

hoveringHeight protected_oe property

protected float hoveringHeight
return float

modelstring protected_oe property

protected String modelstring
return String

oldposition protected_oe property

protected Vector3 oldposition
return Vector3

shiptype public_oe property

public ShipType,spaceconquest shiptype
return ShipType

speed protected_oe property

protected int speed
return int

targetangle protected_oe property

protected double targetangle
return double

targetangles protected_oe property

protected Queue targetangles
return Queue

targetpositions protected_oe property

protected Queue targetpositions
return Queue

targetvector protected_oe property

protected Vector3 targetvector
return Vector3