#include <collision_ot.h>
Inheritance diagram for NLPACS::CCollisionOTStaticInfo:
Nevrax France
Definition at line 352 of file collision_ot.h.
Public Member Functions | |
CCollisionOTStaticInfo () | |
void | clear () |
Clear the element. | |
const CCollisionSurfaceDesc & | getCollisionDesc () const |
double | getCollisionTime () const |
double | getDeltaTime () const |
const UGlobalPosition & | getGlobalPosition () const |
CCollisionOT * | getNext () const |
Get next element in the ot. | |
CCollisionOTInfo * | getNext (CMovePrimitive *primitive) const |
CCollisionOTInfo * | getNextInfo () const |
Get next element in the ot. | |
CMovePrimitive * | getOtherPrimitive (CMovePrimitive *primitive) const |
CCollisionOT * | getPrevious () const |
Get next element in the ot. | |
CMovePrimitive * | getPrimitive () const |
uint8 | getWorldImage () const |
void | init (CMovePrimitive *primitive, const CCollisionSurfaceDesc &desc, const UGlobalPosition &nextGlobalPosition, double delta, uint8 worldImage) |
bool | isCollisionAgainstStatic () const |
bool | isInfo () const |
Return true if it an info collision else false;. | |
void | link (CCollisionOT *newElement) |
Link in the ot. | |
void | primitiveLink (CMovePrimitive *primitive, CCollisionOTInfo *other) |
void | removeFromPrimitives () |
void | unlink () |
Remove from OT. | |
Protected Attributes | |
bool | _Info |
Private Attributes | |
double | _DeltaTime |
UGlobalPosition | _GlobalPosition |
CCollisionOTInfo * | _Next |
CMovePrimitive * | _Primitive |
CCollisionSurfaceDesc | _StaticDesc |
uint8 | _WorldImage |
|
Definition at line 355 of file collision_ot.h.
00356 { 00357 _Info=true; 00358 } |
|
Clear the element.
Definition at line 57 of file collision_ot.h. References NLPACS::CCollisionOT::_Previous. Referenced by NLPACS::CCollisionOT::CCollisionOT().
00058 { 00059 _Next=NULL; 00060 _Previous=NULL; 00061 } |
|
Definition at line 367 of file collision_ot.h. References _StaticDesc.
00368 { 00369 return _StaticDesc; 00370 } |
|
Implements NLPACS::CCollisionOTInfo. Definition at line 422 of file collision_ot.h. References _StaticDesc, and NLPACS::CCollisionSurfaceDesc::ContactTime.
00423 { 00424 return _StaticDesc.ContactTime; 00425 } |
|
Definition at line 379 of file collision_ot.h.
00380 { 00381 return _DeltaTime; 00382 } |
|
Definition at line 373 of file collision_ot.h. References _GlobalPosition.
00374 { 00375 return _GlobalPosition; 00376 } |
|
Get next element in the ot.
Definition at line 100 of file collision_ot.h.
00101 { 00102 return _Next; 00103 } |
|
Implements NLPACS::CCollisionOTInfo. Definition at line 409 of file collision_ot.h.
00410 { 00411 // return next 00412 return _Next; 00413 } |
|
Get next element in the ot.
Definition at line 456 of file collision_ot.h. References NLPACS::CCollisionOT::isInfo().
00457 { 00458 // Get next 00459 CCollisionOT *next=_Next; 00460 00461 // Is an info ? 00462 while ( next && (!next->isInfo ()) ) 00463 next=next->getNextInfo (); 00464 00465 // Return an info 00466 return (CCollisionOTInfo*)next; 00467 } |
|
Implements NLPACS::CCollisionOTInfo. Definition at line 430 of file collision_ot.h.
00431 {
00432 return NULL;
00433 }
|
|
Get next element in the ot.
Definition at line 94 of file collision_ot.h. References NLPACS::CCollisionOT::_Previous.
00095 {
00096 return _Previous;
00097 }
|
|
Definition at line 361 of file collision_ot.h. References _Primitive.
00362 { 00363 return _Primitive; 00364 } |
|
Definition at line 385 of file collision_ot.h. References _WorldImage, and uint8.
00386 { 00387 return _WorldImage; 00388 } |
|
Definition at line 391 of file collision_ot.h. References _GlobalPosition, _Primitive, _StaticDesc, _WorldImage, and uint8.
00393 { 00394 _Primitive=primitive; 00395 _StaticDesc=desc; 00396 _GlobalPosition=nextGlobalPosition; 00397 _DeltaTime=delta; 00398 _WorldImage=worldImage; 00399 } |
|
Implements NLPACS::CCollisionOTInfo. Definition at line 416 of file collision_ot.h.
00417 { 00418 return true; 00419 } |
|
Return true if it an info collision else false;.
Definition at line 88 of file collision_ot.h. References NLPACS::CCollisionOT::_Info. Referenced by NLPACS::CCollisionOT::getNextInfo().
00089 { 00090 return _Info; 00091 } |
|
Link in the ot.
Definition at line 64 of file collision_ot.h. References NLPACS::CCollisionOT::_Next, and NLPACS::CCollisionOT::_Previous.
|
|
Implements NLPACS::CCollisionOTInfo. Definition at line 402 of file collision_ot.h.
00403 { 00404 // Link 00405 _Next=other; 00406 } |
|
Implements NLPACS::CCollisionOTInfo. Definition at line 47 of file collision_ot.cpp. References _Primitive, and NLPACS::CMovePrimitive::removeCollisionOTInfo().
00048 { 00049 _Primitive->removeCollisionOTInfo (this); 00050 } |
|
Remove from OT.
Definition at line 77 of file collision_ot.h. References NLPACS::CCollisionOT::_Next, and NLPACS::CCollisionOT::_Previous.
|
|
Definition at line 445 of file collision_ot.h. |
|
Definition at line 442 of file collision_ot.h. Referenced by getGlobalPosition(), and init(). |
|
Definition at line 117 of file collision_ot.h. Referenced by NLPACS::CCollisionOT::CCollisionOT(), and NLPACS::CCollisionOT::isInfo(). |
|
Reimplemented from NLPACS::CCollisionOT. Definition at line 451 of file collision_ot.h. |
|
Definition at line 436 of file collision_ot.h. Referenced by getPrimitive(), init(), and removeFromPrimitives(). |
|
Definition at line 439 of file collision_ot.h. Referenced by getCollisionDesc(), getCollisionTime(), and init(). |
|
Definition at line 448 of file collision_ot.h. Referenced by getWorldImage(), and init(). |