ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/include/deliantra/command_parser.h
Revision: 1.1
Committed: Sun Oct 17 08:14:49 2010 UTC (16 years ago) by sf-pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
initial import

File Contents

# Content
1 #include "interface/command_handler.h"
2 #include "interface/message_handler.h"
3
4 #include "data/map.h"
5 #include "data/setup.h"
6 #include "data/statistics.h"
7
8 #include <fstream>
9
10 struct command_parser
11 : interface::message_handler
12 {
13 command_parser ()
14 : stats ()
15 , map ()
16 , setup ()
17 {
18 }
19
20 void add_command_handler (interface::command_handler &handler);
21
22 private:
23 void receive (std::string const &cmd, std::string const &args);
24
25 void on_addme_success (std::istream &args);
26 void on_addspell (std::istream &args);
27 void on_anim (std::istream &args);
28 void on_delinv (std::istream &args);
29 void on_delitem (std::istream &args);
30 void on_drawinfo (std::istream &args);
31 void on_ext (std::istream &args);
32 void on_fx (std::istream &args);
33 void on_item2 (std::istream &args);
34 void on_map1a (std::istream &args);
35 void on_mapinfo (std::istream &args);
36 void on_map_scroll (std::istream &args);
37 void on_msg (std::istream &args);
38 void on_newmap (std::istream &args);
39 void on_player (std::istream &args);
40 void on_query (std::istream &args);
41 void on_replyinfo (std::istream &args);
42 void on_setup (std::istream &args);
43 void on_stats (std::istream &args);
44 void on_upditem (std::istream &args);
45 void on_updspell (std::istream &args);
46 void on_version (std::istream &args);
47
48 std::vector<interface::command_handler *> handlers;
49
50 data::statistics stats;
51 data::map map;
52 data::setup setup;
53 };