From 282ae600491f90761047f716d33216170ab76e92 Mon Sep 17 00:00:00 2001 From: Prune Juice <118036786+tylerandari13@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:17:54 -0500 Subject: [PATCH] Delete "src/scripting/worldmap.hpp" (#2642) Since commit ec6035d, which implements `WorldMapSector`, this file serves no purpose and only creates an unnecessary entry in the scripting reference. --- src/scripting/worldmap.hpp | 64 -------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 src/scripting/worldmap.hpp diff --git a/src/scripting/worldmap.hpp b/src/scripting/worldmap.hpp deleted file mode 100644 index 7a520155f62..00000000000 --- a/src/scripting/worldmap.hpp +++ /dev/null @@ -1,64 +0,0 @@ -// SuperTux -// Copyright (C) 2021 A. Semphris -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -#ifndef HEADER_SUPERTUX_SCRIPTING_WORLDMAP_HPP -#define HEADER_SUPERTUX_SCRIPTING_WORLDMAP_HPP - - -#ifndef SCRIPTING_API -#include -#include "scripting/game_object_manager.hpp" -namespace worldmap { -class WorldMap; -} -#endif - -namespace scripting { - -/** - * @summary This class provides additional controlling functions for a worldmap, other than the ones listed at ${SRG_REF_GameObjectManager}. - * @instances An instance under ""worldmap.settings"" is available from scripts and the console. - */ -class WorldMap final : public GameObjectManager -{ -#ifndef SCRIPTING_API -private: - ::worldmap::WorldMap* m_parent; - -public: - WorldMap(::worldmap::WorldMap* parent); - -private: - WorldMap(const WorldMap&) = delete; - WorldMap& operator=(const WorldMap&) = delete; -#endif - -public: - /** - * Gets Tux's X position on the worldmap. - */ - float get_tux_x() const; - /** - * Gets Tux's Y position on the worldmap. - */ - float get_tux_y() const; -}; - -} // namespace scripting - -#endif - -/* EOF */