#include <PartitionManager.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| PartitionData () | |
| void | attachToObject (Object *object) |
| void | detachFromObject (void) |
| void | attachToGhostObject (GhostObject *object) |
| void | detachFromGhostObject (void) |
| void | setNext (PartitionData *next) |
| set next pointer | |
| PartitionData * | getNext (void) |
| get the next pointer | |
| void | setPrev (PartitionData *prev) |
| set the prev pointer | |
| PartitionData * | getPrev (void) |
| get the prev pointer | |
| void | makeDirty (Bool needToUpdateCells) |
| mark the given module as being "dirty", needing recalcing during next update phase. | |
| Bool | isInNeedOfUpdatingCells () const |
| Bool | isInNeedOfCollisionCheck () const |
| void | invalidateShroudedStatusForPlayer (Int playerIndex) |
| void | invalidateShroudedStatusForAllPlayers () |
| ObjectShroudStatus | getShroudedStatus (Int playerIndex) |
| Int | wasSeenByAnyPlayers () const |
| <check if a player in the game has seen the object but is now looking at fogged version. | |
| Int | getControllingPlayerIndex () const |
| void | addPossibleCollisions (PartitionContactList *ctList) |
| Object * | getObject () |
| return the Object that owns this module | |
| const Object * | getObject () const |
| return the Object that owns this module | |
| void | friend_setObject (Object *object) |
| to be used only by the partition manager. | |
| GhostObject * | getGhostObject () const |
| return the ghost object that serves as fogged memory of object. | |
| void | friend_setGhostObject (GhostObject *object) |
| used by ghost object manager to free link to partition data. | |
| void | friend_setShroudednessPrevious (Int playerIndex, ObjectShroudStatus status) |
| only used to restore state after map border resizing and/or xfer! | |
| ObjectShroudStatus | friend_getShroudednessPrevious (Int playerIndex) |
| void | friend_removeAllTouchedCells () |
| this is only for use by PartitionManager | |
| void | friend_updateCellsTouched () |
| this is only for use by PartitionManager | |
| Int | friend_getCoiInUseCount () |
| this is only for use by PartitionManager | |
| Bool | friend_collidesWith (const PartitionData *that, CollideLocAndNormal *cinfo) const |
| this is only for use by PartitionContactList | |
| Int | friend_getDoneFlag () |
| void | friend_setDoneFlag (Int i) |
| Bool | isInListDirtyModules (PartitionData *const *pListHead) const |
| void | prependToDirtyModules (PartitionData **pListHead) |
| void | removeFromDirtyModules (PartitionData **pListHead) |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
A PartitionData is the part of an Object that understands how to maintain the Object in the space partitioning system.
Definition at line 374 of file PartitionManager.h.
| PartitionData::PartitionData | ( | ) |
Definition at line 1543 of file PartitionManager.cpp.
| void PartitionData::addPossibleCollisions | ( | PartitionContactList * | ctList | ) |
enumerate the objects that share space with 'this' (ie, the objects in the same Partition Cells) and add 'em to the given contact list. also, if self is intersecting the ground, add it to the list as a possible collide-with-ground.
Definition at line 1922 of file PartitionManager.cpp.
| void PartitionData::attachToGhostObject | ( | GhostObject * | object | ) |
Definition at line 2299 of file PartitionManager.cpp.
| void PartitionData::attachToObject | ( | Object * | object | ) |
Definition at line 2236 of file PartitionManager.cpp.
| void PartitionData::detachFromGhostObject | ( | void | ) |
Definition at line 2321 of file PartitionManager.cpp.
| void PartitionData::detachFromObject | ( | void | ) |
Definition at line 2273 of file PartitionManager.cpp.
|
inline |
this is only for use by PartitionContactList
Definition at line 549 of file PartitionManager.h.
|
inline |
this is only for use by PartitionManager
Definition at line 548 of file PartitionManager.h.
|
inline |
Definition at line 553 of file PartitionManager.h.
|
inline |
Definition at line 544 of file PartitionManager.h.
|
inline |
this is only for use by PartitionManager
Definition at line 546 of file PartitionManager.h.
|
inline |
Definition at line 554 of file PartitionManager.h.
|
inline |
used by ghost object manager to free link to partition data.
Definition at line 542 of file PartitionManager.h.
|
inline |
to be used only by the partition manager.
Definition at line 540 of file PartitionManager.h.
| void PartitionData::friend_setShroudednessPrevious | ( | Int | playerIndex, |
| ObjectShroudStatus | status ) |
only used to restore state after map border resizing and/or xfer!
Definition at line 1599 of file PartitionManager.cpp.
|
inline |
this is only for use by PartitionManager
Definition at line 547 of file PartitionManager.h.
| Int PartitionData::getControllingPlayerIndex | ( | ) | const |
Definition at line 1582 of file PartitionManager.cpp.
|
inline |
return the ghost object that serves as fogged memory of object.
Definition at line 541 of file PartitionManager.h.
|
inline |
get the next pointer
Definition at line 501 of file PartitionManager.h.
|
inline |
return the Object that owns this module
Definition at line 538 of file PartitionManager.h.
|
inline |
return the Object that owns this module
Definition at line 539 of file PartitionManager.h.
|
inline |
get the prev pointer
Definition at line 503 of file PartitionManager.h.
| ObjectShroudStatus PartitionData::getShroudedStatus | ( | Int | playerIndex | ) |
Definition at line 1614 of file PartitionManager.cpp.
| void PartitionData::invalidateShroudedStatusForAllPlayers | ( | ) |
Definition at line 2125 of file PartitionManager.cpp.
| void PartitionData::invalidateShroudedStatusForPlayer | ( | Int | playerIndex | ) |
Definition at line 2116 of file PartitionManager.cpp.
|
inline |
Definition at line 556 of file PartitionManager.h.
|
inline |
Definition at line 511 of file PartitionManager.h.
|
inline |
Definition at line 510 of file PartitionManager.h.
| void PartitionData::makeDirty | ( | Bool | needToUpdateCells | ) |
mark the given module as being "dirty", needing recalcing during next update phase.
Definition at line 2195 of file PartitionManager.cpp.
|
inline |
Definition at line 562 of file PartitionManager.h.
|
inline |
Definition at line 570 of file PartitionManager.h.
|
inline |
set next pointer
Definition at line 500 of file PartitionManager.h.
|
inline |
set the prev pointer
Definition at line 502 of file PartitionManager.h.
|
inline |
<check if a player in the game has seen the object but is now looking at fogged version.
Definition at line 518 of file PartitionManager.h.