Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "star_system.h"
#include "weapon_xml.h"
#include <assert.h>
#include "audiolib.h"
#include "unit_generic.h"
#include "beam.h"
#include "unit_const_cache.h"
#include "vsfilesystem.h"
#include "role_bitmask.h"
#include "endianness.h"
#include "xml_support.h"
#include "physics.h"
#include <vector>
#include <expat.h>
Go to the source code of this file.
Namespaces | |
BeamXML | |
Constant Groups | |
BeamXML | |
Macros | |
#define | color_step (49) |
#define | Gamma_Needed(gamma, count, depth) |
Functions | |
enum weapon_info::MOUNT_SIZE | lookupMountSize (const char *str) |
weapon_info | getWeaponInfoFromBuffer (char *netbuf, int &size) |
void | setWeaponInfoToBuffer (weapon_info wi, char *netbuf, int &bufsize) |
void | BeamXML::beginElementXML_Char (void *userData, const XML_Char *name, const XML_Char **atts) |
void | BeamXML::beginElement (void *userData, const char *name, const char **atts) |
void | BeamXML::endElement (void *userData, const XML_Char *name) |
weapon_info * | getTemplate (const string &kkey) |
void | LoadWeapons (const char *filename) |
Variables | |
int | counts = time( NULL ) |
const EnumMap::Pair | BeamXML::element_names [] |
const EnumMap::Pair | BeamXML::attribute_names [] |
const EnumMap | BeamXML::element_map (element_names, 10) |
const EnumMap | BeamXML::attribute_map (attribute_names, 32) |
Hashtable< string, weapon_info, 257 > | BeamXML::lookuptable |
string | BeamXML::curname |
weapon_info | BeamXML::tmpweapon (weapon_info::BEAM) |
int | BeamXML::level = -1 |
#define color_step (49) |
Definition at line 231 of file weapon_xml.cpp.
Referenced by BeamXML::beginElement().
#define Gamma_Needed | ( | gamma, | |
count, | |||
depth | |||
) |
Definition at line 233 of file weapon_xml.cpp.
Referenced by BeamXML::beginElement().
weapon_info* getTemplate | ( | const string & | kkey) |
Definition at line 525 of file weapon_xml.cpp.
References VSFileSystem::CachedFileLookup(), ClassCache< Typ, Key >::getCachedMutable(), VegaConfig::getVariable(), weapon_info::gun, weapon_info::gun1, Mesh::LoadMesh(), BeamXML::lookuptable, VSFileSystem::MeshFile, VSFileSystem::Ok, ClassCache< Typ, Key >::setCachedMutable(), strtolower(), strtoupper(), Vector, vs_config, and weapon_info::weapon_name.
weapon_info getWeaponInfoFromBuffer | ( | char * | netbuf, |
int & | size | ||
) |
Definition at line 23 of file weapon_xml.cpp.
References weapon_info::file, VsnetOSS::memcpy(), weapon_info::UNKNOWN, VSSwapHostShortToLittle(), and weapon_info::weapon_name.
void LoadWeapons | ( | const char * | filename) |
Definition at line 544 of file weapon_xml.cpp.
References BeamXML::beginElementXML_Char(), BeamXML::endElement(), f, VSFileSystem::Ok, and VSFileSystem::UnknownFile.
Referenced by GameUniverse::Init(), and Universe::Init().
enum weapon_info::MOUNT_SIZE lookupMountSize | ( | const char * | str) |
Definition at line 237 of file unit_functions_generic.cpp.
void setWeaponInfoToBuffer | ( | weapon_info | wi, |
char * | netbuf, | ||
int & | bufsize | ||
) |
Definition at line 51 of file weapon_xml.cpp.
References bufsize, weapon_info::file, accountXML::file, VsnetOSS::memcpy(), and weapon_info::weapon_name.
int counts = time( NULL ) |
Definition at line 18 of file weapon_xml.cpp.
Referenced by BeamXML::beginElement().