Mana
Loading...
Searching...
No Matches
npchandler.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
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 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include <iosfwd>
25
26namespace Net {
27
29{
30 public:
31 virtual ~NpcHandler() {}
32
33 virtual void startShopping(int beingId) = 0;
34
35 virtual void buy(int beingId) = 0;
36
37 virtual void sell(int beingId) = 0;
38
39 virtual void buyItem(int beingId, int itemId, int amount) = 0;
40
41 virtual void sellItem(int beingId, int itemId, int amount) = 0;
42
43 virtual void endShopping(int beingId) = 0;
44
45 virtual void talk(int npcId) = 0;
46
47 virtual void nextDialog(int npcId) = 0;
48
49 virtual void closeDialog(int npcId) = 0;
50
51 virtual void menuSelect(int npcId, int choice) = 0;
52
53 virtual void integerInput(int npcId, int value) = 0;
54
55 virtual void stringInput(int npcId, const std::string &value) = 0;
56
57 virtual void sendLetter(int npcId, const std::string &recipient,
58 const std::string &text) = 0;
59
60};
61
62} // namespace Net
virtual void sendLetter(int npcId, const std::string &recipient, const std::string &text)=0
virtual void closeDialog(int npcId)=0
virtual void startShopping(int beingId)=0
virtual void sell(int beingId)=0
virtual void menuSelect(int npcId, int choice)=0
virtual void integerInput(int npcId, int value)=0
virtual ~NpcHandler()
Definition npchandler.h:31
virtual void talk(int npcId)=0
virtual void endShopping(int beingId)=0
virtual void stringInput(int npcId, const std::string &value)=0
virtual void buyItem(int beingId, int itemId, int amount)=0
virtual void buy(int beingId)=0
virtual void nextDialog(int npcId)=0
virtual void sellItem(int beingId, int itemId, int amount)=0
The network communication layer.