Planeshift
guihandler.h
Go to the documentation of this file.
1
/*
2
* guihandler.h
3
*
4
* Copyright (C) 2005 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5
*
6
* Credits :
7
* Keith Fulton <keith@planeshift.it>
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License
11
* as published by the Free Software Foundation (version 2
12
* of the License).
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
*
21
*/
22
#ifndef GUIHANDLER_H
23
#define GUIHANDLER_H
24
//=============================================================================
25
// Crystal Space Includes
26
//=============================================================================
27
#include <csutil/parray.h>
28
#include <csutil/ref.h>
29
30
//=============================================================================
31
// Project Includes
32
//=============================================================================
33
#include "
net/cmdbase.h
"
34
35
//=============================================================================
36
// Local Includes
37
//=============================================================================
38
39
40
41
class
psInventoryCache
;
42
49
class
GUIHandler
:
public
psCmdBase
50
{
51
public
:
52
GUIHandler
();
53
void
HandleMessage
(
MsgEntry
* me );
54
55
const
char
*
HandleCommand
(
const
char
*
/*cmd*/
) {
return
NULL; }
56
57
psInventoryCache
*
GetInventoryCache
(
void
) {
return
inventoryCache; }
58
59
protected
:
60
void
HandleInventory
(
MsgEntry
* me );
61
62
private
:
63
psInventoryCache
* inventoryCache;
64
};
65
66
#endif
GUIHandler::HandleMessage
void HandleMessage(MsgEntry *me)
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
cmdbase.h
GUIHandler::HandleInventory
void HandleInventory(MsgEntry *me)
GUIHandler::HandleCommand
const char * HandleCommand(const char *)
Interprets a received message and executes the command.
Definition:
guihandler.h:55
GUIHandler
This class receives all network messages from the server which affect the GUI or are displayable by t...
Definition:
guihandler.h:49
GUIHandler::GUIHandler
GUIHandler()
psInventoryCache
psinventorycache.h
Definition:
psinventorycache.h:27
GUIHandler::GetInventoryCache
psInventoryCache * GetInventoryCache(void)
Definition:
guihandler.h:57
psCmdBase
Definition:
cmdbase.h:42
client
guihandler.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11