zZoneInfluenceItemPosition Class Reference

#include <zZoneInfluence.h>

Inheritance diagram for zZoneInfluenceItemPosition:

Inheritance graph
[legend]
Collaboration diagram for zZoneInfluenceItemPosition:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zZoneInfluenceItemPosition (zZonePtr aZone)
virtual ~zZoneInfluenceItemPosition ()
void set (eCoord const &p)
virtual void apply (const tPolynomial< nMessage > &value)

Protected Attributes

eCoord pos


Detailed Description

Definition at line 76 of file zZoneInfluence.h.


Constructor & Destructor Documentation

zZoneInfluenceItemPosition::zZoneInfluenceItemPosition ( zZonePtr  aZone  ) 

Definition at line 52 of file zZoneInfluence.cpp.

00052                                                                     :
00053         zZoneInfluenceItem(aZone),
00054         pos(0.0, 0.0)
00055 {}

virtual zZoneInfluenceItemPosition::~zZoneInfluenceItemPosition (  )  [inline, virtual]

Definition at line 81 of file zZoneInfluence.h.

00081 {};


Member Function Documentation

void zZoneInfluenceItemPosition::set ( eCoord const &  p  )  [inline]

Definition at line 83 of file zZoneInfluence.h.

References pos.

00083                                {
00084         pos = p;
00085     };

void zZoneInfluenceItemPosition::apply ( const tPolynomial< nMessage > &  value  )  [virtual]

Reimplemented from zZoneInfluenceItem.

Definition at line 58 of file zZoneInfluence.cpp.

References pos, tFunction::SetOffset(), tFunction::SetSlope(), and zZoneInfluenceItem::zone.

00058                                                                     {
00059     tFunction tfPosition;
00060 
00061     tfPosition.SetOffset( pos.x );
00062     tfPosition.SetSlope( 0.0f );
00063     zone->getShape()->setPosX( tfPosition );
00064 
00065     tfPosition.SetOffset( pos.y );
00066     zone->getShape()->setPosY( tfPosition );
00067 }

Here is the call graph for this function:


Member Data Documentation

eCoord zZoneInfluenceItemPosition::pos [protected]

Definition at line 78 of file zZoneInfluence.h.

Referenced by apply(), and set().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:02:39 2008 for Armagetron Advanced by  doxygen 1.5.4