Planeshift
pawsquestrewardwindow.h
Go to the documentation of this file.
1
/*
2
* pawsquestrewardwindow.h - Author: Ian Donderwinkel
3
*
4
* Copyright (C) 2004 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5
*
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation (version 2 of the License)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
*
18
*/
19
20
#ifndef PAWS_QUEST_REWARD_WINDOW_HEADER
21
#define PAWS_QUEST_REWARD_WINDOW_HEADER
22
23
#include "
paws/pawswidget.h
"
24
#include "
paws/pawslistbox.h
"
25
29
class
pawsQuestRewardWindow
:
public
pawsWidget
,
public
psCmdBase
30
{
31
public
:
32
pawsQuestRewardWindow
();
33
virtual
~pawsQuestRewardWindow
();
34
35
void
HandleMessage
(
MsgEntry
* message );
36
const
char
*
HandleCommand
(
const
char
* cmd);
37
38
bool
PostSetup
();
39
40
bool
OnButtonPressed
(
int
mouseButton,
int
keyModifier,
pawsWidget
* widget);
41
42
protected
:
43
pawsListBox
*
rewardList
;
44
};
45
46
CREATE_PAWS_FACTORY
(
pawsQuestRewardWindow
);
47
48
#endif
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
pawslistbox.h
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
pawsQuestRewardWindow::pawsQuestRewardWindow
pawsQuestRewardWindow()
pawsQuestRewardWindow::~pawsQuestRewardWindow
virtual ~pawsQuestRewardWindow()
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsQuestRewardWindow)
pawsQuestRewardWindow::rewardList
pawsListBox * rewardList
Definition:
pawsquestrewardwindow.h:43
pawsQuestRewardWindow::OnButtonPressed
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawsQuestRewardWindow::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsQuestRewardWindow
A window with list of rewards the player can choose as a result of quest completion.
Definition:
pawsquestrewardwindow.h:29
pawsListBox
A simple list box widget.
Definition:
pawslistbox.h:202
pawswidget.h
pawsQuestRewardWindow::HandleCommand
const char * HandleCommand(const char *cmd)
Interprets a received message and executes the command.
pawsQuestRewardWindow::HandleMessage
void HandleMessage(MsgEntry *message)
psCmdBase
Definition:
cmdbase.h:42
client
gui
pawsquestrewardwindow.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11