From 4d0b5b11f2d5a3ae4429b3864d77ab16ed0ded97 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 12 Jul 2009 12:08:39 +0100 Subject: [PATCH] Move buildings into their own directory --- house.mtl => buildings/white_house/house.mtl | 0 house.obj => buildings/white_house/house.obj | 0 .../white_house/house.wings | Bin include/IBuilding.hpp | 32 ++++++++++++++++++ src/Building.cpp | 18 ++++++++++ src/Main.cpp | 1 - 6 files changed, 50 insertions(+), 1 deletion(-) rename house.mtl => buildings/white_house/house.mtl (100%) rename house.obj => buildings/white_house/house.obj (100%) rename house.wings => buildings/white_house/house.wings (100%) create mode 100644 include/IBuilding.hpp create mode 100644 src/Building.cpp diff --git a/house.mtl b/buildings/white_house/house.mtl similarity index 100% rename from house.mtl rename to buildings/white_house/house.mtl diff --git a/house.obj b/buildings/white_house/house.obj similarity index 100% rename from house.obj rename to buildings/white_house/house.obj diff --git a/house.wings b/buildings/white_house/house.wings similarity index 100% rename from house.wings rename to buildings/white_house/house.wings diff --git a/include/IBuilding.hpp b/include/IBuilding.hpp new file mode 100644 index 0000000..97fa687 --- /dev/null +++ b/include/IBuilding.hpp @@ -0,0 +1,32 @@ +// +// 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_IBUILDING_HPP +#define INC_IBUILDING_HPP + +#include "Platform.hpp" + +#include + +// Interface to buildings and other bits of scenery +struct IBuilding { + virtual ~IBuilding() {} +}; + +typedef shared_ptr IBuildingPtr; + +#endif diff --git a/src/Building.cpp b/src/Building.cpp new file mode 100644 index 0000000..a9b2864 --- /dev/null +++ b/src/Building.cpp @@ -0,0 +1,18 @@ +// +// 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 "IBuilding.hpp" diff --git a/src/Main.cpp b/src/Main.cpp index 2c3a06b..1c6bf13 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -23,7 +23,6 @@ #include -using namespace std; using namespace boost::filesystem; namespace { -- 2.39.2