GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Public Attributes
radix::XmlHelper Class Reference

#include <external/RadixEngine/include/radix/data/map/XmlHelper.hpp>

Static Public Member Functions

static void pushAttributeVertexToVector (tinyxml2::XMLElement *xmlElement, Vector3f &targetVector)
 Pushes vector coordinates from an XML-element to a Vector3f. More...
 
static void throwMandatoryAttributeException (const std::string &message)
 
static void extractPosition (tinyxml2::XMLElement *xmlElement, Vector3f &position)
 
static void extractColor (tinyxml2::XMLElement *xmlElement, Vector3f &color)
 
static void extractRotation (tinyxml2::XMLElement *xmlElement, Vector3f &rotation)
 
static void extractScale (tinyxml2::XMLElement *xmlElement, Vector3f &scale)
 
static void extractTriggerActions (Entity &trigger, tinyxml2::XMLElement *xmlElement)
 

Static Public Attributes

static std::string mandatoryAttributeMessage
 
static std::string invalidElementMessage
 

Member Function Documentation

void radix::XmlHelper::extractColor ( tinyxml2::XMLElement *  xmlElement,
Vector3f color 
)
static
void radix::XmlHelper::extractPosition ( tinyxml2::XMLElement *  xmlElement,
Vector3f position 
)
static
void radix::XmlHelper::extractRotation ( tinyxml2::XMLElement *  xmlElement,
Vector3f rotation 
)
static
void radix::XmlHelper::extractScale ( tinyxml2::XMLElement *  xmlElement,
Vector3f scale 
)
static
void radix::XmlHelper::extractTriggerActions ( Entity trigger,
tinyxml2::XMLElement *  xmlElement 
)
static
void radix::XmlHelper::pushAttributeVertexToVector ( tinyxml2::XMLElement *  xmlElement,
Vector3f targetVector 
)
static

Pushes vector coordinates from an XML-element to a Vector3f.

Trying to pull attributes from a non-existing element is considered an exception.

void radix::XmlHelper::throwMandatoryAttributeException ( const std::string &  message)
static

Field Documentation

std::string radix::XmlHelper::invalidElementMessage
static
std::string radix::XmlHelper::mandatoryAttributeMessage
static

The documentation for this class was generated from the following files: