C# Class RaceGame.Car

Mostra file Open project: cjohnsson/Racing-Game Class Usage Examples

Public Methods

Method Description
Accelerate ( ) : void
Break ( ) : void
Car ( ITexture2DHolder newImage, System.Vector2 position ) : System
Draw ( SpriteBatch spriteBatch ) : void
GetTerrain ( System.Vector2 position ) : TerrainTypes
TurnLeft ( ) : void
TurnRight ( ) : void
Update ( ) : void

Private Methods

Method Description
Decelerate ( ) : void

Method Details

Accelerate() public method

public Accelerate ( ) : void
return void

Break() public method

public Break ( ) : void
return void

Car() public method

public Car ( ITexture2DHolder newImage, System.Vector2 position ) : System
newImage ITexture2DHolder
position System.Vector2
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
return void

GetTerrain() public method

public GetTerrain ( System.Vector2 position ) : TerrainTypes
position System.Vector2
return TerrainTypes

TurnLeft() public method

public TurnLeft ( ) : void
return void

TurnRight() public method

public TurnRight ( ) : void
return void

Update() public method

public Update ( ) : void
return void