40 #ifndef _worldproxy_cpp
41 #define _worldproxy_cpp
43 #include "worldproxy.h"
44 #include "worldobject.h"
49 #include "stringtool.h"
116 Boole WasInWorld =
false;
118 if( !InWorldAttrib.
Empty() ) {
134 if( !PropertiesNode.
Empty() ) {
137 if( !CurrAttrib.
Empty() )
141 if( !PositionNode.
Empty() ) {
147 if( !PositionNode.
Empty() ) {
153 if( !PositionNode.
Empty() ) {
169 {
return "WorldProxy"; }
Attribute AppendAttribute(const Char8 *Name)
Creates an Attribute and puts it at the end of this Nodes attributes.
A light-weight handle for manipulating attributes in DOM tree.
bool Boole
Generally acts a single bit, true or false.
virtual Vector3 GetLocation() const =0
Gets this objects current location.
virtual UInt32 GetProxyID() const
Gets the unique ID of this proxy.
Thrown when the requested identity could not be found.
virtual void ProtoSerializeImpl(XML::Node &SelfRoot) const
Implementation method for serializing additional sets of data.
Node GetFirstChild() const
Get the first child Node of this Node.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
virtual void ProtoDeSerialize(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite this object with it.
virtual Quaternion GetOrientation() const =0
Gets this objects current orientation.
Thrown when a version is accessed/parsed/required and it cannot work correctly or is missing...
const Char8 * AsString(const Char8 *def="") const
Attempts to convert the value of the attribute to a String and returns the results.
virtual void ProtoDeSerializeProperties(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite the properties of this object with it...
Any global enumerations shared between multiple classes is to be declared here.
bool Empty() const
Is this storing anything at all?
virtual void SetScale(const Vector3 &Sc)=0
Sets the scaling to be applied to this object.
This implements the exception hiearchy for Mezzanine.
virtual void Scale(const Vector3 &Scale)=0
Scales the object from it's current size.
virtual void ProtoSerialize(XML::Node &ParentNode) const
Convert this class to an XML::Node ready for serialization.
virtual String GetDerivedSerializableName() const
Gets the most derived serializable name of this WorldProxy.
The interface for serialization.
bool SetValue(const Char8 *rhs)
Set the value of this.
This is the base class from which classes that are insertable into the physical world.
virtual Vector3 GetScale() const =0
Gets the scaling currently being applied to this object.
A light-weight handle for manipulating nodes in DOM tree.
virtual void SetOrientation(const Quaternion &Ori)=0
Sets the orientation of this object in parent space.
unsigned int AsUint(unsigned int def=0) const
Attempts to convert the value of the attribute to an unsigned int and returns the results...
int AsInt(int def=0) const
Attempts to convert the value of the attribute to an int and returns the results. ...
uint32_t UInt32
An 32-bit unsigned integer.
virtual void ProtoSerializeProperties(XML::Node &SelfRoot) const
Convert the properties of this class to an XML::Node ready for serialization.
bool Empty() const
Is this storing anything at all?
void _Bind(WorldObject *NewParent)
Binds this proxy to a WorldObject.
virtual void AddToWorld()=0
Performs all the necessary task to ensure this object is connected to it's respective world and ready...
WorldObject * ParentObject
Pointer to the Object this proxy belongs to.
UInt32 ProxyID
The unique ID assigned to the type of proxy an instance is.
virtual Boole IsInWorld() const =0
Gets whether or not this object is inside of it's world.
static String GetSerializableName()
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized...
This is used to represent a point in space, or a vector through space.
virtual ~WorldProxy()
Class destructor.
The bulk of the engine components go in this namspace.
virtual WorldObject * GetParentObject() const
Gets a pointer to the parent object controlling this proxy.
void ProtoSerialize(XML::Node &CurrentRoot) const
Convert this class to an XML::Node ready for serialization.
This is used to store information about rotation in 3d space.
void SerializeError(const String &FailedTo, const String &ClassName, Boole SOrD)
Simply does some string concatenation, then throws an Exception.
Node AppendChild(NodeType Type=NodeElement)
Creates a Node and makes it a child of this one.
std::string String
A datatype used to a series of characters.
WorldProxy()
Blank constructor.
Attribute GetAttribute(const Char8 *Name) const
Attempt to get an Attribute on this Node with a given name.
void ProtoSerialize(XML::Node &CurrentRoot) const
Convert this class to an XML::Node ready for serialization.
virtual void SetLocation(const Vector3 &Loc)=0
Sets the location of this object in parent space.
Node GetChild(const Char8 *Name) const
Attempt to get a child Node with a given name.
virtual void ProtoDeSerializeImpl(const XML::Node &SelfRoot)
Implementation method for deseriailizing additional sets of data.