Esempio n. 1
0
 /// <summary>
 /// Creates an Engine and sets up some base variables
 /// </summary>
 /// <param name="currentShip">The ship we are attached to.</param>
 /// <param name="velocityStep">When we accelerate, how much should it be by?</param>
 /// <param name="MAX_SPEED">What is our top speed?</param>
 public Engine(Ship currentShip, float velocityStep, float MAX_SPEED)
 {
     this.currentShip  = currentShip;
     this.VelocityStep = velocityStep;
     this.MAX_SPEED    = MAX_SPEED;
 }