Planeshift

guihandler.h

Go to the documentation of this file.
00001 /*
00002 * guihandler.h
00003 *
00004 * Copyright (C) 2005 Atomic Blue ([email protected], http://www.atomicblue.org)
00005 *
00006 * Credits : 
00007 *           Keith Fulton <[email protected]>
00008 *
00009 * This program is free software; you can redistribute it and/or
00010 * modify it under the terms of the GNU General Public License
00011 * as published by the Free Software Foundation (version 2
00012 * of the License).
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 * You should have received a copy of the GNU General Public License
00018 * along with this program; if not, write to the Free Software
00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020 *
00021 */
00022 #ifndef GUIHANDLER_H
00023 #define GUIHANDLER_H
00024 //=============================================================================
00025 // Crystal Space Includes
00026 //=============================================================================
00027 #include <csutil/parray.h>
00028 #include <csutil/ref.h>
00029 
00030 //=============================================================================
00031 // Project Includes
00032 //=============================================================================
00033 #include "net/cmdbase.h"
00034 
00035 //=============================================================================
00036 // Local Includes
00037 //=============================================================================
00038 
00039 
00040 
00041 class psInventoryCache;
00042 
00049 class GUIHandler : public psCmdBase
00050 {
00051 public:
00052     GUIHandler();
00053     void HandleMessage( MsgEntry* me );    
00054         
00055     const char* HandleCommand( const char* /*cmd*/ ) { return NULL; }
00056     
00057     psInventoryCache* GetInventoryCache(void) { return inventoryCache; }
00058 
00059 protected:
00060     void HandleInventory( MsgEntry* me );
00061 
00062 private:
00063     psInventoryCache* inventoryCache;
00064 };
00065 
00066 #endif