1 /***************************************************************************** 2 * Copyright (c) 2014-2020 OpenRCT2 developers 3 * 4 * For a complete list of all authors, please refer to contributors.md 5 * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 6 * 7 * OpenRCT2 is licensed under the GNU General Public License version 3. 8 *****************************************************************************/ 9 10 #pragma once 11 12 #include "GameAction.h" 13 14 class WallRemoveAction final : public GameActionBase<GameCommand::RemoveWall> 15 { 16 private: 17 CoordsXYZD _loc; 18 19 public: 20 WallRemoveAction() = default; 21 WallRemoveAction(const CoordsXYZD& loc); 22 23 void AcceptParameters(GameActionParameterVisitor& visitor) override; 24 void Serialise(DataSerialiser& stream) override; 25 GameActions::Result::Ptr Query() const override; 26 GameActions::Result::Ptr Execute() const override; 27 28 private: 29 TileElement* GetFirstWallElementAt(const CoordsXYZD& location, bool isGhost) const; 30 }; 31