C# Class RTS.Default.Unit.Movement

Inheritance: ACUnitMovementController
显示文件 Open project: RegrowthStudios/VoxelRTS

Public Methods

Method Description
AddToHistory ( Vector2 location ) : void
ApplyMove ( GameState g, float dt ) : void
DecideMove ( GameState g, float dt ) : void
Deserialize ( BinaryReader s ) : void
Init ( GameState s, GameplayController c, object args ) : void
Serialize ( BinaryWriter s ) : void
UnitForce ( Vector2 a, Vector2 b ) : Vector2

Private Methods

Method Description
CoastIsClear ( Vector2 a, Vector2 b, float stepSize, float radius, CollisionGrid cg ) : bool
SetNetForceAndWaypoint ( GameState g ) : void

Method Details

AddToHistory() public method

public AddToHistory ( Vector2 location ) : void
location Vector2
return void

ApplyMove() public method

public ApplyMove ( GameState g, float dt ) : void
g RTSEngine.Data.GameState
dt float
return void

DecideMove() public method

public DecideMove ( GameState g, float dt ) : void
g RTSEngine.Data.GameState
dt float
return void

Deserialize() public method

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

Init() public method

public Init ( GameState s, GameplayController c, object args ) : void
s RTSEngine.Data.GameState
c RTSEngine.Controllers.GameplayController
args object
return void

Serialize() public method

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

UnitForce() public method

public UnitForce ( Vector2 a, Vector2 b ) : Vector2
a Vector2
b Vector2
return Vector2