![]() |
Public API Reference |
A node. More...
#include <cstool/mapnode.h>
Public Member Functions | |
| csMapNode (const char *Name) | |
| The constructor. Requires the Nodes name! | |
| virtual const csVector3 & | GetPosition () const |
| Get the position of the node. | |
| virtual iSector * | GetSector () const |
| Get the sector of the node. | |
| virtual const csVector3 & | GetXVector () const |
| Get the x vector of the node. | |
| virtual const csVector3 & | GetYVector () const |
| Get the y vector of the node. | |
| virtual const csVector3 & | GetZVector () const |
| Get the z vector of the node. | |
| virtual iObject * | QueryObject () |
| Get the iObject. | |
| virtual void | SetPosition (const csVector3 &pos) |
| Set the position of the node. | |
| virtual void | SetSector (iSector *sec) |
| Set the sector of the node. | |
| virtual void | SetXVector (const csVector3 &vec) |
| Set the x vector of the node. | |
| virtual void | SetYVector (const csVector3 &vec) |
| Set the y vector of the node. | |
| virtual void | SetZVector (const csVector3 &vec) |
| Set the z vector of the node. | |
| virtual | ~csMapNode () |
| The destructor as usual. | |
Static Public Member Functions | |
| static iMapNode * | GetNode (iSector *pSector, const char *name, const char *classname=0) |
| Get a node with the given name and a given classname. (shortcut) | |
A node.
This is an iObject that is bound to a position and a sector in the world.
| csMapNode::csMapNode | ( | const char * | Name | ) |
The constructor. Requires the Nodes name!
| virtual csMapNode::~csMapNode | ( | ) | [virtual] |
The destructor as usual.
| static iMapNode* csMapNode::GetNode | ( | iSector * | pSector, |
| const char * | name, | ||
| const char * | classname = 0 |
||
| ) | [static] |
Get a node with the given name and a given classname. (shortcut)
| virtual const csVector3& csMapNode::GetPosition | ( | ) | const [inline, virtual] |
| virtual iSector* csMapNode::GetSector | ( | ) | const [inline, virtual] |
| virtual const csVector3& csMapNode::GetXVector | ( | ) | const [inline, virtual] |
| virtual const csVector3& csMapNode::GetYVector | ( | ) | const [inline, virtual] |
| virtual const csVector3& csMapNode::GetZVector | ( | ) | const [inline, virtual] |
| virtual iObject* csMapNode::QueryObject | ( | ) | [inline, virtual] |
| virtual void csMapNode::SetPosition | ( | const csVector3 & | pos | ) | [inline, virtual] |
| virtual void csMapNode::SetSector | ( | iSector * | pSector | ) | [virtual] |
Set the sector of the node.
Implements iMapNode.
| virtual void csMapNode::SetXVector | ( | const csVector3 & | vec | ) | [inline, virtual] |
| virtual void csMapNode::SetYVector | ( | const csVector3 & | vec | ) | [inline, virtual] |
| virtual void csMapNode::SetZVector | ( | const csVector3 & | vec | ) | [inline, virtual] |