src/roadveh.h
changeset 7488 6f51ddf4c225
parent 7484 7734e4119e70
child 7490 bb27d92565d3
--- a/src/roadveh.h	Wed Aug 29 21:08:35 2007 +0000
+++ b/src/roadveh.h	Wed Aug 29 21:27:16 2007 +0000
@@ -6,7 +6,8 @@
 #define ROADVEH_H
 
 #include "vehicle.h"
-
+#include "engine.h"
+#include "variables.h"
 
 enum RoadVehicleSubType {
 	RVST_FRONT,
@@ -83,6 +84,7 @@
 	int GetImage(Direction direction) const;
 	int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
 	int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
+	Money GetRunningCost() const { return RoadVehInfo(this->engine_type)->running_cost * _price.roadveh_running; }
 	void Tick();
 };