From 0fcfaff680c6974a9b3f2a63704a8eb788d3fe94 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 4 Apr 2002 20:01:18 +0000 Subject: [PATCH] initial commit --- bs/planet.cpp | 23 +++++++++++++++++++++++ bs/planet.h | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 bs/planet.cpp create mode 100644 bs/planet.h diff --git a/bs/planet.cpp b/bs/planet.cpp new file mode 100644 index 0000000..03c4537 --- /dev/null +++ b/bs/planet.cpp @@ -0,0 +1,23 @@ +/*************************************************************************** + planet.cpp - description + ------------------- + begin : Wed Apr 3 2002 + copyright : (C) 2002 by Michael Andreen + email : whale@linux.nu + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "planet.h" + +Planet::Planet(){ +} +Planet::~Planet(){ +} diff --git a/bs/planet.h b/bs/planet.h new file mode 100644 index 0000000..f98d723 --- /dev/null +++ b/bs/planet.h @@ -0,0 +1,39 @@ +/*************************************************************************** + planet.h - description + ------------------- + begin : Wed Apr 3 2002 + copyright : (C) 2002 by Michael Andreen + email : whale@linux.nu + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef PLANET_H +#define PLANET_H + +#include "fleet.h" + +/**This class is the implementation of a planet. + * + * Yes I know.. In real life you wouldn't call a planet a fleet, but this isn't + * real life, it's a game engine, and in this engine a planet got all the + * attributes that a fleet got + some additions, so I think the inheritance + * is fully legal from a OOP standpoint. If it isn't, then please correct me ;) + *@author Michael Andreen + */ + +class Planet : public Fleet { +public: + Planet(); + ~Planet(); + unsigned score(); +}; + +#endif -- 2.39.2