Mountain bike module contains the MountainBike
class. Mountain bikes are a kind of bike for cycling on rough terrain.
Members | Descriptions |
---|---|
class transport::MountainBike |
Mountain bike implementation of a [Bicycle](example/doc/api-bicycle.md#classtransport_1_1Bicycle) . |
class transport::MountainBike
: public transport::Bicycle
Mountain bike implementation of a [Bicycle](example/doc/api-bicycle.md#classtransport_1_1Bicycle)
.
MountainBike is an implementation of a 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 SetSuspension). If you're looking for a bike for use on the road, you might be better off using a RacingBike though.
Members | Descriptions |
---|---|
public bool SetSuspension (double stiffness) |
Set suspension stiffness. the suspension stiffness. |
public template<> inline bool ChangeBreak (BreakType breakType) |
Change the break type. the break type. the type of the break. |
public bool
SetSuspension
(double stiffness)
{#classtransport_1_1MountainBike_1a04caecd7e5ff7572b6ac1dc283510301}
Set suspension 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.
true if the suspension was adjusted successfully, false otherwise.
public template<>
inline bool
ChangeBreak
(BreakType breakType)
{#classtransport_1_1MountainBike_1afd02513876a196e98acaacdc555aeb52}
Change the break type. the break type. 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.
true if the break was adjusted successfully. false otherise