Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

universe.h

00001 // $Id: universe_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $
00002 
00003 // Universe Header File
00004 // Written by: Marco Krohn, <marco.krohn@gmx.de>
00005 
00006 // Copyright (C) 2001 - , Marco Krohn, <marco.krohn@gmx.de>
00007 //
00008 // This program is free software; you can redistribute it and/or modify
00009 // it under the terms of the GNU General Public License as published by
00010 // the Free Software Foundation; either version 2, or (at your option)
00011 // any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 
00018 #ifndef __UNIVERSE_INCLUDED
00019 #define __UNIVERSE_INCLUDED
00020 
00021 #include <map>
00022 #include <string>
00023 
00024 #include "common/defs.h"
00025 #include "gamelogic/item.h"
00026 #include "common/link.h"
00027 #include "common/plist.h"
00028 
00029 class TDataPackageList;
00030 class TGalaxy;
00031 class TObjectID;
00032 class TStellarObject;
00033 class TStellarObjectList;
00034 
00035 
00036 
00037 
00038 
00039 //----------------------------------------  class TUniverse  ----------------------------------------
00040 
00055 class TUniverse : public TLinkable
00056 {
00057   public:
00062     virtual ~TUniverse();
00063 
00072     bool addGalaxy( TGalaxy* galaxy );
00081     bool addItem( TItem* item );
00085     const list<TGalaxy*>& getGalaxies() const;
00089     const list<TItem*>& getItems() const;
00093     static TUniverse* instance();
00099     virtual void reset();
00100 
00101   protected:
00107     TUniverse();
00108 
00109   private:
00111     static TUniverse* fInstance;
00112 
00114     list<TGalaxy*> fGalaxies;
00116     list<TItem*> fItemList;
00117 };
00118 
00119 
00120 
00121 
00122 
00123 #endif        //  __UNIVERSE_INCLUDED

Generated on Thu Jun 20 18:13:16 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001