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

player.h

00001 // $Id: player_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $
00002 
00003 // Player Header File
00004 // Written by: Alberto Barsella
00005 
00006 // Copyright (C) 2001, Alberto Barsella <Alberto.Barsella@univ-lille1.fr>
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 1, 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 __PLAYER_INCLUDED
00019 #define __PLAYER_INCLUDED
00020 
00021 #include "common/defs.h"
00022 #include "common/link.h"
00023 
00024 
00025 class TDataPackageList;
00026 
00027 
00028 
00029 class TPlayer : public TLinkable
00030 {
00031   public:
00032     enum {
00033       ACTIVE = 0,
00034       INACTIVE = 1,
00035       DEAD = 2
00036     };
00037 
00041     TPlayer( const string& name="" );
00042     ~TPlayer();
00043 
00047     const string& getName() const;
00048     int2 getStatus() const;
00049     virtual bool load( TDataPackageList* in );
00050     virtual bool save( TDataPackageList* out ) const;
00055     void setName( const string& name );
00056     void setStatus( int2 status );
00057 
00058   private:
00062     TPlayer( const TPlayer& );
00066     TPlayer& operator=( const TPlayer& );
00067 
00068     int2 fStatus;
00069     string fName;
00070 };
00071 
00072 
00073 #endif // __PLAYER_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