summaryrefslogtreecommitdiffstats
path: root/Vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Vehicle.cpp')
-rw-r--r--Vehicle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Vehicle.cpp b/Vehicle.cpp
index 3e71db4..9a5153c 100644
--- a/Vehicle.cpp
+++ b/Vehicle.cpp
@@ -23,3 +23,8 @@ bool Vehicle::Draw(int bound_x)
return ret;
}
+
+int Vehicle::GetLength()
+{
+ return veh_info[type].length;
+} \ No newline at end of file