public MovingObject(string bitmap, double x, int velocity) { _bitmap = SplashKit.BitmapNamed(bitmap); _position.X = x; _position.Y = 0; _velocity = velocity; _width = SplashKit.BitmapWidth(_bitmap); _floatingState = new AboveWaterState(); }