Esempio n. 1
0
 public Gun(Vector2 position, int width, int height, GunSize size, float speed)
 {
     Position  = position;
     Width     = width;
     Height    = height;
     Size      = size;
     MoveSpeed = speed;
     Center    = new Vector2(Position.X + width / 2, Position.Y + height / 2);
 }
Esempio n. 2
0
 public ClosedloopGun(byte id, GunSize size, float wheelRadius) : base(id, size)
 {
     WheelRadius = wheelRadius;
 }
Esempio n. 3
0
 public PwmGun(byte id, GunSize size) : base(id, size)
 {
     DutyRatioSpeedTable = new LinearInterpolationLookupTable( );
 }
Esempio n. 4
0
 public Gun(byte id, GunSize size)
 {
     Id   = id;
     Size = size;
 }