From e20ba5d4a3ac20b44a8d38fcf953bdabe8c1cde9 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 15 Sep 2018 23:32:19 +0200 Subject: [PATCH] Add missing stuff to TestPaint --- test/testpaint/Compat.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index 8acf4db41c..7dc657b201 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -331,3 +331,23 @@ TileCoordsXYZD ride_get_exit_location(const Ride* ride, const int32_t stationInd { return ride->exits[stationIndex]; } + +uint8_t TileElementBase::GetDirection() const +{ + return this->type & TILE_ELEMENT_DIRECTION_MASK; +} + +uint8_t TileElementBase::GetDirectionWithOffset(uint8_t offset) const +{ + return ((this->type & TILE_ELEMENT_DIRECTION_MASK) + offset) & TILE_ELEMENT_DIRECTION_MASK; +} + +uint8_t SurfaceElement::GetSlope() const +{ + return (slope & TILE_ELEMENT_SURFACE_SLOPE_MASK); +} + +uint32_t SurfaceElement::GetWaterHeight() const +{ + return terrain & TILE_ELEMENT_SURFACE_WATER_HEIGHT_MASK; +}