|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSTargetLocatedBindable Class ReferenceThis class is a located bindable that can focus on several target Can be inherited by bindable like forces or collision zones.
More...
#include <ps_located.h>
Inheritance diagram for NL3D::CPSTargetLocatedBindable
[legend]Collaboration diagram for NL3D::CPSTargetLocatedBindable:
[legend]List of all members.
Detailed Description
This class is a located bindable that can focus on several target Can be inherited by bindable like forces or collision zones.
Definition at line 780 of file ps_located.h.
Member Typedef Documentation
typedef std::vector< CPSLocated *> NL3D::CPSTargetLocatedBindable::TTargetCont [protected]
|
|
Constructor & Destructor Documentation
NL3D::CPSTargetLocatedBindable::~CPSTargetLocatedBindable (
|
) [virtual]
|
|
Member Function Documentation
void NL3D::CPSTargetLocatedBindable::attachTarget (
|
CPSLocated * ptr ) [virtual]
|
|
|
Add a new type of located for this force to apply on.
nlassert if present By overriding this and calling the CPSTargetLocatedBindable version, you can also send some notficiation to the object that's being attached
Reimplemented in NL3D::CPSZone.
Definition at line 590 of file ps_located.cpp. |
void NL3D::CPSTargetLocatedBindable::detachTarget (
|
CPSLocated * ptr )
|
|
|
Detach a target.
If not present -> assert This also call releaseTargetRsc for clean up
Definition at line 609 of file ps_located.cpp. |
uint32 NL3D::CPSTargetLocatedBindable::getNbTargets (
|
void ) const [inline]
|
|
const CPSLocated * NL3D::CPSTargetLocatedBindable::getTarget (
|
uint32 index ) const [inline]
|
|
|
Return a const ptr on a target. Invalid range -> nlassert.
Definition at line 807 of file ps_located.h. |
CPSLocated * NL3D::CPSTargetLocatedBindable::getTarget (
|
uint32 index ) [inline]
|
|
|
Return a ptr on a target. Invalid range -> nlassert.
Definition at line 800 of file ps_located.h. |
void NL3D::CPSTargetLocatedBindable::releaseTargetRsc (
|
CPSLocated * target ) [inline, virtual]
|
|
|
it is called when a target is destroyed or detached Override this if you allocated resources from the target (to release them) IMPORTANT : as objects are no polymorphic while being destroyed, this class can't call your releaseTargetRsc override in its destructor.
You must must redefine the destructor and call this method yourself for all target see ps_zone.cpp for an example
Reimplemented in NL3D::CPSZone.
Definition at line 822 of file ps_located.h. |
Member Data Documentation
TTargetCont NL3D::CPSTargetLocatedBindable::_Targets [protected]
|
|
The documentation for this class was generated from the following files:
|
|