Merge branch 'master' into jgrpp
# Conflicts: # src/ai/ai_gui.cpp # src/build_vehicle_gui.cpp # src/genworld_gui.cpp # src/lang/english.txt # src/lang/german.txt # src/lang/korean.txt # src/newgrf_sound.cpp # src/roadveh.h # src/sound.cpp # src/station_cmd.cpp # src/train.h # src/train_cmd.cpp # src/vehicle.cpp # src/vehicle_base.h # src/vehicle_gui.cpp
This commit is contained in:
@@ -381,6 +381,15 @@ public:
|
||||
NewGRFCache grf_cache; ///< Cache of often used calculated NewGRF values
|
||||
VehicleCache vcache; ///< Cache of often used vehicle values.
|
||||
|
||||
/**
|
||||
* Calculates the weight value that this vehicle will have when fully loaded with its current cargo.
|
||||
* @return Weight value in tonnes.
|
||||
*/
|
||||
virtual uint16 GetMaxWeight() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Vehicle(VehicleType type = VEH_INVALID);
|
||||
|
||||
void PreDestructor();
|
||||
@@ -477,8 +486,9 @@ public:
|
||||
|
||||
/**
|
||||
* Play the sound associated with leaving the station
|
||||
* @param force Should we play the sound even if sound effects are muted? (horn hotkey)
|
||||
*/
|
||||
virtual void PlayLeaveStationSound() const {}
|
||||
virtual void PlayLeaveStationSound(bool force = false) const {}
|
||||
|
||||
/**
|
||||
* Whether this is the primary vehicle in the chain.
|
||||
@@ -1201,6 +1211,9 @@ public:
|
||||
* @return an iterable ensemble of orders of a vehicle
|
||||
*/
|
||||
IterateWrapper Orders() const { return IterateWrapper(this->orders); }
|
||||
|
||||
uint32 GetDisplayMaxWeight() const;
|
||||
uint32 GetDisplayMinPowerToWeight() const;
|
||||
};
|
||||
|
||||
inline bool IsPointInViewportVehicleRedrawArea(const std::vector<Rect> &viewport_redraw_rects, const Point &pt)
|
||||
|
||||
Reference in New Issue
Block a user