Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

galaxy.h

Go to the documentation of this file.
00001 /*
00002          _/_/_/     _/_/_/   _/_/_/_/    _/_/_/    _/    _/  _/_/_/_/ _/_/_/_/    _/_/_/   _/_/_/_/
00003         _/    _/  _/    _/  _/     _/  _/     _/  _/    _/  _/       _/     _/  _/    _/  _/     _/
00004        _/    _/  _/    _/  _/     _/  _/     _/  _/    _/  _/       _/     _/  _/    _/  _/     _/
00005       _/_/_/    _/    _/  _/_/_/_/   _/     _/  _/    _/  _/_/_/   _/_/_/_/   _/    _/  _/_/_/_/
00006      _/     _/ _/    _/  _/  _/     _/     _/  _/    _/  _/       _/  _/     _/    _/  _/  _/
00007     _/     _/ _/    _/  _/   _/    _/   _/_/  _/    _/  _/       _/   _/    _/    _/  _/   _/
00008    _/     _/ _/    _/  _/    _/     _/_/_/   _/    _/  _/       _/    _/   _/    _/  _/    _/
00009   _/_/_/_/   _/_/_/   _/     _/         _/   _/_/_/   _/_/_/_/ _/     _/   _/_/_/   _/     _/
00010 
00011   \author Hannosset Christophe
00012   \date 2 - Dec - 2003
00013 */
00014 
00015 #if !defined( __GALAXY_H__ )
00016 #define __GALAXY_H__
00017 
00018 class StarSystem;
00019 
00020 class Galaxy : public vector<StarSystem *> , public MessageClient , public Thread       {
00021 private:
00022 
00023         string  filename;
00024         SDL_mutex *mutex;
00025 
00026 public:
00027 
00028         Galaxy( void );
00029 
00030         ~Galaxy( void );
00031 
00032         void Reset( void );
00033 
00034         const bool IsLoaded( void )     {       return !filename.empty();       }
00035 
00036 protected:
00037 
00038         virtual long Run( void * );
00039 
00040         const bool evMessage( const UserMessage &msg );
00041 
00042 private:
00043 
00044         void Load( const string fname );
00045 };
00046 
00047 #endif

Generated on Fri Dec 5 04:05:59 2003 for Borqueror by doxygen 1.3.3