#include <zZoneInfluence.h>
Public Member Functions | |
zZoneInfluenceItemPosition (zZonePtr aZone) | |
virtual | ~zZoneInfluenceItemPosition () |
void | set (eCoord const &p) |
virtual void | apply (const tPolynomial< nMessage > &value) |
Protected Attributes | |
eCoord | pos |
Definition at line 76 of file zZoneInfluence.h.
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] |
void zZoneInfluenceItemPosition::set | ( | eCoord const & | p | ) | [inline] |
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 }
eCoord zZoneInfluenceItemPosition::pos [protected] |