CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csMapNode Class Reference

A node. More...

#include <mapnode.h>

Inheritance diagram for csMapNode:

csObject iMapNode iObject iBase iBase List of all members.

Public Methods

 csMapNode (const char *Name)
 The constructor. Requires the Nodes name!

virtual ~csMapNode ()
 The destructor as usual.

virtual iObject * QueryObject ()
 Get the iObject.

virtual void SetPosition (const csVector3 &pos)
 Set the position of the node.

virtual const csVector3 & GetPosition () const
 Get the position of the node.

virtual void SetSector (iSector *sec)
 Set the sector of the node.

virtual iSector * GetSector () const
 Get the sector of the node.


Static Public Methods

iMapNode * GetNode (iSector *pSector, const char *name, const char *classname=0)
 Get a node with the given name and a given classname. (shortcut).


Detailed Description

A node.

This is an iObject that is bound to a position and a sector in the world.

Definition at line 33 of file mapnode.h.


Constructor & Destructor Documentation

csMapNode::csMapNode (  const char *    Name ) 
 

The constructor. Requires the Nodes name!

virtual csMapNode::~csMapNode (    )  [virtual]
 

The destructor as usual.


Member Function Documentation

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 (    )  [virtual]
 

Get the position of the node.

Implements iMapNode.

virtual iSector* csMapNode::GetSector (    )  [virtual]
 

Get the sector of the node.

Implements iMapNode.

virtual iObject* csMapNode::QueryObject (    )  [inline, virtual]
 

Get the iObject.

Implements iMapNode.

Definition at line 47 of file mapnode.h.

virtual void csMapNode::SetPosition (  const csVector3 &    pos )  [virtual]
 

Set the position of the node.

Implements iMapNode.

virtual void csMapNode::SetSector (  iSector *    sec )  [virtual]
 

Set the sector of the node.

Implements iMapNode.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18