C# Class SpaceShip.Control

ファイルを表示 Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Methods

Method Description
Control ( ControlType type ) : System
ToString ( ) : string
captureControls ( ) : void
getDeltaAngle ( ) : int
getDeltaSpeedX ( ) : int
getDeltaSpeedY ( ) : int
getIdPlayer ( ) : int
getInstance ( ) : Control
isBraking ( ) : bool
isShooting ( ) : bool
setIdPlayer ( int idPlayer ) : void

Protected Methods

Method Description
setBraking ( bool condition ) : void
setDeltaAngle ( int dA ) : void
setDeltaSpeedX ( int dSX ) : void
setDeltaSpeedY ( int dSY ) : void
setShooting ( bool condition ) : void

Method Details

Control() public method

public Control ( ControlType type ) : System
type ControlType
return System

ToString() public method

public ToString ( ) : string
return string

captureControls() public method

public captureControls ( ) : void
return void

getDeltaAngle() public method

public getDeltaAngle ( ) : int
return int

getDeltaSpeedX() public method

public getDeltaSpeedX ( ) : int
return int

getDeltaSpeedY() public method

public getDeltaSpeedY ( ) : int
return int

getIdPlayer() public method

public getIdPlayer ( ) : int
return int

getInstance() public static method

public static getInstance ( ) : Control
return Control

isBraking() public method

public isBraking ( ) : bool
return bool

isShooting() public method

public isShooting ( ) : bool
return bool

setBraking() protected method

protected setBraking ( bool condition ) : void
condition bool
return void

setDeltaAngle() protected method

protected setDeltaAngle ( int dA ) : void
dA int
return void

setDeltaSpeedX() protected method

protected setDeltaSpeedX ( int dSX ) : void
dSX int
return void

setDeltaSpeedY() protected method

protected setDeltaSpeedY ( int dSY ) : void
dSY int
return void

setIdPlayer() public method

public setIdPlayer ( int idPlayer ) : void
idPlayer int
return void

setShooting() protected method

protected setShooting ( bool condition ) : void
condition bool
return void