diff --git a/src/openrct2/peep/Peep.cpp b/src/openrct2/peep/Peep.cpp index 386152485e..fa136ebb05 100644 --- a/src/openrct2/peep/Peep.cpp +++ b/src/openrct2/peep/Peep.cpp @@ -3381,3 +3381,14 @@ bool Peep::HasItem(ShopItem peepItem) const { return GetItemFlags() & EnumToFlag(peepItem); } + +void Peep::SetDestination(const CoordsXY& coords) +{ + DestinationX = static_cast(coords.x); + DestinationY = static_cast(coords.y); +} + +CoordsXY Peep::GetDestination() const +{ + return CoordsXY{ static_cast(DestinationX), static_cast(DestinationY) }; +} diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 779706a7db..877d783fab 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -766,6 +766,9 @@ public: // Peep void GiveItem(ShopItem item); bool HasItem(ShopItem peepItem) const; + void SetDestination(const CoordsXY& coords); + CoordsXY GetDestination() const; + // TODO: Make these private again when done refactoring public: // Peep bool CheckForPath();