C# Class Shooter.Controls.Movement

Show file Open project: JoeyTheAsian/Just-Force Class Usage Examples

Public Properties

Property Type Description
XVelocity double
YVelocity double
normVelocity double
sprintVelocity double

Public Methods

Method Description
Movement ( double mv, double accel, int tileSize ) : System
UpdateSprint ( KeyboardState state, KeyboardState oldState, int tileSize, Character player ) : void
UpdateX ( double xVelocity, double timeElapsed, KeyboardState state ) : double
UpdateY ( double yVelocity, double timeElapsed, KeyboardState state ) : double

Method Details

Movement() public method

public Movement ( double mv, double accel, int tileSize ) : System
mv double
accel double
tileSize int
return System

UpdateSprint() public method

public UpdateSprint ( KeyboardState state, KeyboardState oldState, int tileSize, Character player ) : void
state Microsoft.Xna.Framework.Input.KeyboardState
oldState Microsoft.Xna.Framework.Input.KeyboardState
tileSize int
player Shooter.Entities.Character
return void

UpdateX() public method

public UpdateX ( double xVelocity, double timeElapsed, KeyboardState state ) : double
xVelocity double
timeElapsed double
state Microsoft.Xna.Framework.Input.KeyboardState
return double

UpdateY() public method

public UpdateY ( double yVelocity, double timeElapsed, KeyboardState state ) : double
yVelocity double
timeElapsed double
state Microsoft.Xna.Framework.Input.KeyboardState
return double

Property Details

XVelocity public property

public double XVelocity
return double

YVelocity public property

public double YVelocity
return double

normVelocity public property

public double normVelocity
return double

sprintVelocity public property

public double sprintVelocity
return double