transport::MountainBike class

Mountain bike implementation of a transport::Bicycle.

Contents

MountainBike is an implementation of a transport::Bicycle providing a bike for cycling on rough terrain. Mountain bikes are pretty cool because they have stuff like Suspension (and you can even adjust it using transport::MountainBike::SetSuspension). If you’re looking for a bike for use on the road, you might be better off using a transport::RacingBike though.

Base classes

class transport::Bicycle abstract
Standard bicycle class. This is a rather long brief line, it occupies the whole paragraph…

Functions

auto SetSuspension(double const stiffness = 0) -> bool
Set suspension stiffness. more...
template<typename BreakType>
auto ChangeBreak(BreakType const breakType) -> bool
Change the break type. more...

Function documentation

bool SetSuspension(double const stiffness = 0)

Set suspension stiffness.

@param stiffness the suspension stiffness.

SetSuspension changes the stiffness of the suspension on the bike. The method will return false if the stiffness could not be adjusted.

@return true if the suspension was adjusted successfully, false otherwise.

template<typename BreakType>
bool ChangeBreak(BreakType const breakType)

Change the break type.

@tparam BreakType the break type. @param breakType the type of the break.

ChangesBreak changes the type of break fitted to the bike. The method will return false if the break type could not be fitted.

@return true if the break was adjusted successfully. false otherwise