Bicycle.hpp 394 Bytes
Newer Older
Martin Kröning's avatar
Martin Kröning committed
1
2
3
#pragma once

#include "Vehicle.hpp"
4
#include <string_view>
5
class MapAppAPIWrapper;
Martin Kröning's avatar
Martin Kröning committed
6
7
8
9
10

class Bicycle : public Vehicle {
public:
  Bicycle(std::string name, double topSpeed, double timeOfStart, double time);

11
  void draw(MapAppAPIWrapper &mapApp, std::string_view laneName,
Martin Kröning's avatar
Martin Kröning committed
12
13
14
15
            double laneLength, double speedLimit) const override;

  double getSpeed(double speedLimit) const override;
};