diff options
author | rubidium <rubidium@openttd.org> | 2008-10-19 15:39:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-10-19 15:39:12 +0000 |
commit | d832626bb9f8009c636c3ebef0620ead499ef8d3 (patch) | |
tree | 2a5381abe13a96fd46089d41193bd7b605164edc /src/vehicle_func.h | |
parent | 15eb140d28a8fc131dedc595c7685562917130a4 (diff) | |
download | openttd-d832626bb9f8009c636c3ebef0620ead499ef8d3.tar.xz |
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
Diffstat (limited to 'src/vehicle_func.h')
-rw-r--r-- | src/vehicle_func.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vehicle_func.h b/src/vehicle_func.h index 6b0c36930..e17b0f39d 100644 --- a/src/vehicle_func.h +++ b/src/vehicle_func.h @@ -75,14 +75,13 @@ bool CanBuildVehicleInfrastructure(VehicleType type); void CcCloneVehicle(bool success, TileIndex tile, uint32 p1, uint32 p2); - +/** Position information of a vehicle after it moved */ struct GetNewVehiclePosResult { - int x, y; - TileIndex old_tile; - TileIndex new_tile; + int x, y; ///< x and y position of the vehicle after moving + TileIndex old_tile; ///< Current tile of the vehicle + TileIndex new_tile; ///< Tile of the vehicle after moving }; -/* returns true if staying in the same tile */ GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v); Direction GetDirectionTowards(const Vehicle *v, int x, int y); |