# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CPSZone Class Reference

This class hold any entity that has an effect over located : a sink, a bouncing zone etc This is a kind a specialized force, and it has an attached list of the targets Not sharable. More...

#include <ps_zone.h>

Inheritance diagram for NL3D::CPSZone

Inheritance graph
[legend]
Collaboration diagram for NL3D::CPSZone:

Collaboration graph
[legend]
List of all members.

Public Methods

 CPSZone ()
 Constructor. More...

 ~CPSZone ()
virtual uint32 getType (void) const
 Gives the type for this bindable. More...

virtual uint32 getPriority (void) const
 Get the priority of the bindable The more high it is, the earlier it is dealt with. More...

virtual void step (TPSProcessPass pass, CAnimationTime ellapsedTime)
 Process one pass for the zone The default behaviour call performMotion or show depending on the pass being processed. More...

virtual void performMotion (CAnimationTime ellapsedTime) = 0
 This is usually called by the step method for the pass dedicated to zone.

virtual void show (CAnimationTime ellapsedTime) = 0
 Show the zone (edition mode). This is usually called.

virtual void attachTarget (CPSLocated *ptr)
 Add a new type of located for this zone to apply on. More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 serialisation, DERIVER must override this. More...

virtual void releaseTargetRsc (CPSLocated *target)
 inherit from CPSTargetLocatedBindable. Its called when one of the targets has been detroyed. More...


Detailed Description

This class hold any entity that has an effect over located : a sink, a bouncing zone etc This is a kind a specialized force, and it has an attached list of the targets Not sharable.

Author(s):
Nicolas Vizerie , Nevrax France
Date:
2001

Definition at line 54 of file ps_zone.h.


Constructor & Destructor Documentation

NL3D::CPSZone::CPSZone ( )
 

Constructor.

Definition at line 40 of file ps_zone.cpp.

NL3D::CPSZone::~CPSZone ( )
 

Definition at line 46 of file ps_zone.cpp.


Member Function Documentation

void NL3D::CPSZone::attachTarget ( CPSLocated * ptr ) [virtual]
 

Add a new type of located for this zone to apply on.

We override this to queery the target to allocate the CollisionInfo attribute

Reimplemented from NL3D::CPSTargetLocatedBindable.

Definition at line 60 of file ps_zone.cpp.

uint32 NL3D::CPSZone::getPriority ( void ) const [inline, virtual]
 

Get the priority of the bindable The more high it is, the earlier it is dealt with.

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 74 of file ps_zone.h.

uint32 NL3D::CPSZone::getType ( void ) const [inline, virtual]
 

Gives the type for this bindable.

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 68 of file ps_zone.h.

void NL3D::CPSZone::performMotion ( CAnimationTime ellapsedTime ) [pure virtual]
 

This is usually called by the step method for the pass dedicated to zone.

Reimplemented in NL3D::CPSZonePlane.

void NL3D::CPSZone::releaseTargetRsc ( CPSLocated * target ) [virtual]
 

inherit from CPSTargetLocatedBindable. Its called when one of the targets has been detroyed.

Its called when one of the targets has been detroyed or detached The default behaviour, release collision infos from the located

Reimplemented from NL3D::CPSTargetLocatedBindable.

Definition at line 71 of file ps_zone.cpp.

void NL3D::CPSZone::serial ( NLMISC::IStream & f ) throw (NLMISC::EStream) [inline, virtual]
 

serialisation, DERIVER must override this.

Reimplemented from NL3D::CPSTargetLocatedBindable.

Reimplemented in NL3D::CPSZonePlane.

Definition at line 96 of file ps_zone.h.

void NL3D::CPSZone::show ( CAnimationTime ellapsedTime ) [pure virtual]
 

Show the zone (edition mode). This is usually called.

Reimplemented in NL3D::CPSZonePlane.

void NL3D::CPSZone::step ( TPSProcessPass pass,
CAnimationTime ellapsedTime ) [virtual]
 

Process one pass for the zone The default behaviour call performMotion or show depending on the pass being processed.

Reimplemented from NL3D::CPSLocatedBindable.

Definition at line 79 of file ps_zone.cpp.


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