From cef0ac6862df9a33909e0aa56f89f4c4257cca69 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Tue, 22 Jan 2002 19:43:28 +0000 Subject: [PATCH] Initial commit of unittype.cpp and unittype.h --- bs/fleet.h | 8 ++++++++ bs/unittype.cpp | 23 +++++++++++++++++++++++ bs/unittype.h | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 bs/unittype.cpp create mode 100644 bs/unittype.h diff --git a/bs/fleet.h b/bs/fleet.h index 16422dd..7a2f489 100644 --- a/bs/fleet.h +++ b/bs/fleet.h @@ -18,10 +18,13 @@ #ifndef FLEET_H #define FLEET_H +#include +#include /** *@author Michael Andreen *This is the engine for the whole battlesystem. + *One of the few parts that I plan make fully portable. */ class Fleet @@ -29,6 +32,11 @@ class Fleet public: Fleet(); ~Fleet(); + +private: + string m_name; + string m_race; + map }; #endif diff --git a/bs/unittype.cpp b/bs/unittype.cpp new file mode 100644 index 0000000..3b57cc1 --- /dev/null +++ b/bs/unittype.cpp @@ -0,0 +1,23 @@ +/*************************************************************************** + unittype.cpp - description + ------------------- + begin : Tue Jan 22 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 "unittype.h" + +UnitType::UnitType(){ +} +UnitType::~UnitType(){ +} diff --git a/bs/unittype.h b/bs/unittype.h new file mode 100644 index 0000000..5c66e01 --- /dev/null +++ b/bs/unittype.h @@ -0,0 +1,32 @@ +/*************************************************************************** + unittype.h - description + ------------------- + begin : Tue Jan 22 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 UNITTYPE_H +#define UNITTYPE_H + + +/** + *@author Michael Andreen + */ + +class UnitType { +public: + UnitType(); + ~UnitType(); +}; + +#endif -- 2.39.2