Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
script.h
Go to the documentation of this file.
1 #ifndef _CMD_AISCRIPT_H_
2 #define _CMD_AISCRIPT_H_
3 #include "order.h"
4 #include "navigation.h"
5 
11 struct AIScriptXML;
12 class AIScript : public Order
13 {
15  char *filename;
17  AIScriptXML *xml;
19  void LoadXML(); //load the xml
21  static void beginElement( void *userData, const XML_Char *name, const XML_Char **atts );
23  static void endElement( void *userData, const XML_Char *name );
25  float& topf();
27  void popf();
29  QVector& topv();
31  void popv();
33  void beginElement( const string &name, const AttributeList &attributes );
35  void endElement( const string &name );
36 public:
38  AIScript( const char *scriptname );
39  ~AIScript();
41  void Execute();
42 };
43 
44 #endif
45