1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Make crossing-related Peep methods protected

This commit is contained in:
matheusvb3
2025-10-07 13:57:07 -03:00
parent 80977e1e0d
commit 03af42598c

View File

@@ -387,7 +387,6 @@ public: // Peep
void Remove(); void Remove();
void UpdateCurrentAnimationType(); void UpdateCurrentAnimationType();
void UpdateSpriteBoundingBox(); void UpdateSpriteBoundingBox();
void UpdateWaitingAtCrossing();
void SwitchToSpecialSprite(uint8_t special_sprite_id); void SwitchToSpecialSprite(uint8_t special_sprite_id);
void StateReset(); void StateReset();
[[nodiscard]] uint8_t GetNextDirection() const; [[nodiscard]] uint8_t GetNextDirection() const;
@@ -422,15 +421,16 @@ public: // Peep
// TODO: Make these private again when done refactoring // TODO: Make these private again when done refactoring
public: // Peep public: // Peep
[[nodiscard]] bool CheckForPath(); [[nodiscard]] bool CheckForPath();
bool ShouldWaitForLevelCrossing() const;
bool IsOnLevelCrossing() const;
bool IsOnPathBlockedByVehicle() const;
std::pair<uint8_t, OpenRCT2::TileElement*> PerformNextAction(); std::pair<uint8_t, OpenRCT2::TileElement*> PerformNextAction();
[[nodiscard]] int32_t GetZOnSlope(int32_t tile_x, int32_t tile_y); [[nodiscard]] int32_t GetZOnSlope(int32_t tile_x, int32_t tile_y);
void SwitchNextAnimationType(); void SwitchNextAnimationType();
[[nodiscard]] PeepAnimationType GetAnimationType(); [[nodiscard]] PeepAnimationType GetAnimationType();
protected: protected:
bool ShouldWaitForLevelCrossing() const;
bool IsOnLevelCrossing() const;
bool IsOnPathBlockedByVehicle() const;
void UpdateWaitingAtCrossing();
void UpdateFalling(); void UpdateFalling();
void Update1(); void Update1();
void UpdatePicked(); void UpdatePicked();