From 079f97fcb678a0418492feccc3998c98a11d31eb Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 12 Jul 2009 12:11:29 +0100 Subject: [PATCH] Move lighthouse into its own directory --- .../lighthouse/lighthouse.mtl | 0 .../lighthouse/lighthouse.obj | 0 .../lighthouse/lighthouse.wings | Bin include/BuildingPanel.hpp | 34 ---------------- src/BuildingPanel.cpp | 37 ------------------ 5 files changed, 71 deletions(-) rename lighthouse.mtl => buildings/lighthouse/lighthouse.mtl (100%) rename lighthouse.obj => buildings/lighthouse/lighthouse.obj (100%) rename lighthouse.wings => buildings/lighthouse/lighthouse.wings (100%) delete mode 100644 include/BuildingPanel.hpp delete mode 100644 src/BuildingPanel.cpp diff --git a/lighthouse.mtl b/buildings/lighthouse/lighthouse.mtl similarity index 100% rename from lighthouse.mtl rename to buildings/lighthouse/lighthouse.mtl diff --git a/lighthouse.obj b/buildings/lighthouse/lighthouse.obj similarity index 100% rename from lighthouse.obj rename to buildings/lighthouse/lighthouse.obj diff --git a/lighthouse.wings b/buildings/lighthouse/lighthouse.wings similarity index 100% rename from lighthouse.wings rename to buildings/lighthouse/lighthouse.wings diff --git a/include/BuildingPanel.hpp b/include/BuildingPanel.hpp deleted file mode 100644 index c89b235..0000000 --- a/include/BuildingPanel.hpp +++ /dev/null @@ -1,34 +0,0 @@ -// -// Copyright (C) 2009 Nick Gasson -// -// 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 INC_BUILDINGPANEL_HPP -#define INC_BUILDINGPANEL_HPP - -#include "gui/IContainer.hpp" - -// The panel that displays building models -class BuildingPanel { -public: - BuildingPanel(); - ~BuildingPanel(); - - void render() const; -private: - gui::IContainerPtr myPanel; -}; - -#endif diff --git a/src/BuildingPanel.cpp b/src/BuildingPanel.cpp deleted file mode 100644 index 6bd6722..0000000 --- a/src/BuildingPanel.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// -// Copyright (C) 2009 Nick Gasson -// -// 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 . -// - -#include "BuildingPanel.hpp" - -using namespace gui; - -BuildingPanel::BuildingPanel() -{ - myPanel = makePanel("Select Building", makeFlowBox(FLOW_BOX_VERT)); - myPanel->setOrigin(50, 50); -} - -BuildingPanel::~BuildingPanel() -{ - -} - -void BuildingPanel::render() const -{ - myPanel->render(); -} - -- 2.39.2