C# Class TankDriver.Logic.Tank

Class representing tank in game logic terms.
Inheritance: IUnit
Afficher le fichier Open project: ForNeVeR/TankDriver Class Usage Examples

Méthodes publiques

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

public Accelerate ( ) : void
Résultat void

Decelerate() public méthode

public Decelerate ( ) : void
Résultat void

GetModel() public méthode

Unit model.
public GetModel ( ) : IModel
Résultat IModel

SetTarget() public méthode

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

StopTurning() public méthode

public StopTurning ( ) : void
Résultat void

Tank() public méthode

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.
Résultat System

TurnLeft() public méthode

public TurnLeft ( ) : void
Résultat void

TurnRight() public méthode

public TurnRight ( ) : void
Résultat void

UpdatePosition() public méthode

public UpdatePosition ( System.TimeSpan timeDelta ) : void
timeDelta System.TimeSpan
Résultat void