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
event_xml.cpp File Reference
#include "cmd/unit_generic.h"
#include "xml_support.h"
#include "event_xml.h"
#include <string>
#include <vector>
#include <list>
#include <float.h>
#include <assert.h>
#include "vegastrike.h"
#include "vsfilesystem.h"
#include "vs_globals.h"
#include "configxml.h"

Go to the source code of this file.

Namespaces

 AIEvents
 

Constant Groups

 AIEvents
 

Functions

bool validateHardCodedScript (std::string s)
 
void AIEvents::GeneralAIEventBegin (void *userData, const XML_Char *name, const XML_Char **atts)
 
void AIEvents::GeneralAIEventEnd (void *userData, const XML_Char *name)
 
void AIEvents::LoadAI (const char *filename, ElemAttrMap &result, const string &faction)
 

Variables

const int AIEvents::AIUNKNOWN = 0
 
const int AIEvents::AIMIN = 1
 
const int AIEvents::AIMAX = 2
 
const int AIEvents::AISCRIPT = 3
 
const int AIEvents::AINOT = 4
 
const int AIEvents::TIMEIT = 5
 
const int AIEvents::OBEDIENCE = 6
 
const int AIEvents::TIMETOINTERRUPT = 7
 
const int AIEvents::PRIORITY = 8
 
const XMLSupport::EnumMap::Pair AIEvents::AIattribute_names []
 
const XMLSupport::EnumMap AIEvents::attr_map (AIattribute_names, 9)
 

Function Documentation

bool validateHardCodedScript ( std::string  s)

Definition at line 80 of file script.cpp.

References hard_coded_scripts.

Referenced by AIEvents::AIEvresult::AIEvresult().

81 {
82  if (s.length() == 0) return true;
83  return hard_coded_scripts.find( s ) != hard_coded_scripts.end();
84 }