C# Class TankDriver.Logic.Tank

Class representing tank in game logic terms.
Inheritance: IUnit
Exibir arquivo Open project: ForNeVeR/TankDriver Class Usage Examples

Public Methods

Method Description
Accelerate ( ) : void
Decelerate ( ) : void
GetModel ( ) : IModel

Unit model.

SetTarget ( double x, double y ) : void

Sets target for turret.

StopTurning ( ) : void
Tank ( double x, double y, double heading ) : System

Tank constructor.

TurnLeft ( ) : void
TurnRight ( ) : void
UpdatePosition ( System.TimeSpan timeDelta ) : void

Method Details

Accelerate() public method

public Accelerate ( ) : void
return void

Decelerate() public method

public Decelerate ( ) : void
return void

GetModel() public method

Unit model.
public GetModel ( ) : IModel
return IModel

SetTarget() public method

Sets target for turret.
public SetTarget ( double x, double y ) : void
x double X coordinate of target.
y double Y coordinate of target.
return void

StopTurning() public method

public StopTurning ( ) : void
return void

Tank() public method

Tank constructor.
public Tank ( double x, double y, double heading ) : System
x double X coordinate of tank.
y double Y coordinate of tank.
heading double Heading of tank, rad.
return System

TurnLeft() public method

public TurnLeft ( ) : void
return void

TurnRight() public method

public TurnRight ( ) : void
return void

UpdatePosition() public method

public UpdatePosition ( System.TimeSpan timeDelta ) : void
timeDelta System.TimeSpan
return void