So, I added my physics classes...
[potpourri.git] / include / core / parsegame.h
blob0a205d9f7eab1bafa980a545137a597dd96a26ab
1 // Copyright 2008 Brian Caine
3 // This file is part of Potpourri.
5 // Potpourri is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
10 // Potpourri is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTIBILITY of FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Potpourri. If not, see <http://www.gnu.org/licenses/>.
19 // NOTES:
20 // Autogenerated header
22 #ifndef __PARSEGAME_H
23 #define __PARSEGAME_H
25 #include <libxml++/libxml++.h>
27 #include "XmlExtra.h"
28 #include <string>
30 namespace XMLParser
32 namespace parsegame
34 struct meta
36 std::string m_title;
37 std::string m_version;
38 std::vector<std::string> m_author;
39 std::string m_about;
40 std::string m_icon;
43 struct graphics
45 int m_width;
46 int m_height;
49 struct presentation
51 std::string m_name;
52 graphics m_graphics;
53 bool m_net;
56 struct event
58 std::string m_name;
59 std::string m_default;
62 struct controls
64 std::vector<event> m_event;
67 struct plugins
69 std::string m_graphics;
70 std::string m_input;
71 std::string m_audio;
72 std::string m_script;
73 std::vector<std::string> m_extra;
76 struct dgraphics
78 std::string m_name;
79 std::string m_plugin;
80 std::string m_filename;
83 struct audio
85 std::string m_name;
86 std::string m_filename;
89 struct media
91 std::vector<dgraphics> m_graphics;
92 std::vector<audio> m_audio;
95 struct game
97 meta m_meta;
98 std::vector<presentation> m_presentation;
99 controls m_controls;
100 plugins m_plugins;
101 media m_media;
102 std::vector<std::string> m_actor;
103 std::vector<std::string> m_level;
106 game parsegameFromBuffer(std::string);
108 game parsegame(xmlpp::Node*);
109 std::string parsename(xmlpp::Node*);
110 audio parseaudio(xmlpp::Node*);
111 std::string parseplugin(xmlpp::Node*);
112 std::string parsefilename(xmlpp::Node*);
113 graphics parsegraphics(xmlpp::Node*);
114 dgraphics parsedgraphics(xmlpp::Node*);
115 audio parseaudio(xmlpp::Node*);
116 media parsemedia(xmlpp::Node*);
117 std::string parsegraphicsplugin(xmlpp::Node*);
118 std::string parseinput(xmlpp::Node*);
119 std::string parseaudioplugin(xmlpp::Node*);
120 std::string parsescript(xmlpp::Node*);
121 std::string parseextra(xmlpp::Node*);
122 plugins parseplugins(xmlpp::Node*);
123 std::string parsedefault(xmlpp::Node*);
124 event parseevent(xmlpp::Node*);
125 event parseevent(xmlpp::Node*);
126 controls parsecontrols(xmlpp::Node*);
127 int parsewidth(xmlpp::Node*);
128 int parseheight(xmlpp::Node*);
129 std::string parsename(xmlpp::Node*);
130 bool parsenet(xmlpp::Node*);
131 presentation parsepresentation(xmlpp::Node*);
132 std::string parsetitle(xmlpp::Node*);
133 std::string parseversion(xmlpp::Node*);
134 std::string parseauthor(xmlpp::Node*);
135 std::string parseabout(xmlpp::Node*);
136 std::string parseicon(xmlpp::Node*);
137 meta parsemeta(xmlpp::Node*);
138 std::string parseactor(xmlpp::Node*);
139 std::string parselevel(xmlpp::Node*);
143 #endif