Drag[en]gine Game Engine
1.21
|
Blocker for navigation spaces. More...
#include <deNavigationBlocker.h>
Public Types | |
typedef deTObjectReference< deNavigationBlocker > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
const decDVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decDVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decVector & | GetScaling () const |
Scaling. More... | |
void | SetScaling (const decVector &scaling) |
Set scaling. More... | |
int | GetLayer () const |
Layer number. More... | |
void | SetLayer (int layer) |
Set layer number. More... | |
deNavigationSpace::eSpaceTypes | GetSpaceType () const |
Space type to navigate. More... | |
void | SetSpaceType (deNavigationSpace::eSpaceTypes spaceType) |
Set space type to navigate. More... | |
int | GetBlockingPriority () const |
Blocking priority. More... | |
void | SetBlockingPriority (int priority) |
Set blocking priority. More... | |
bool | GetEnabled () const |
Blocker is enabled. More... | |
void | SetEnabled (bool enabled) |
Set if blocker is enabled. More... | |
decShapeList & | GetShapeList () |
Shape list. More... | |
const decShapeList & | GetShapeList () const |
void | NotifyShapeListChanged () |
Notifies the peers that the shape list changed. More... | |
System Peers | |
deBaseAINavigationBlocker * | GetPeerAI () const |
AI system peer. More... | |
void | SetPeerAI (deBaseAINavigationBlocker *peer) |
Set AI system peer. More... | |
Linked List | |
deWorld * | GetParentWorld () const |
Parent world or NULL. More... | |
void | SetParentWorld (deWorld *world) |
Set parent world or NULL. More... | |
deNavigationBlocker * | GetLLWorldPrev () const |
Previous blocker in the parent world linked list. More... | |
void | SetLLWorldPrev (deNavigationBlocker *blocker) |
Set next blocker in the parent world linked list. More... | |
deNavigationBlocker * | GetLLWorldNext () const |
Next blocker in the parent world linked list. More... | |
void | SetLLWorldNext (deNavigationBlocker *blocker) |
Set next blocker in the parent world linked list. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deNavigationBlocker (deNavigationBlockerManager *manager) | |
Create new blocker. More... | |
virtual | ~deNavigationBlocker () |
Clean up blocker. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Blocker for navigation spaces.
Blockers are used to restrict navigation spaces. This can be used to modify naviagion spaces without having to modify their meshes which is the case for placing props in scenes while the navigation space defines the general layout of a room. Blockers can also be used to dynamically alter navigation like doors temporarily blocking off rooms. In this case AI automatically picks new path and the blocker can be disabled later on. Blockers can be moved while active. This should be done moderately since changing the navigation layout all time can be potentially expensive and AI might be confused if path is constantly changing. The already calculates path are not affected by a change. The game scripts have to react to the changes at their own discretion.
Type holding strong reference.
deNavigationBlocker::deNavigationBlocker | ( | deNavigationBlockerManager * | manager | ) |
Create new blocker.
|
protectedvirtual |
Clean up blocker.
|
inline |
Blocking priority.
Blocks navigation meshes with a smaller or equal blocking priority.
|
inline |
Blocker is enabled.
|
inline |
Layer number.
|
inline |
Next blocker in the parent world linked list.
|
inline |
Previous blocker in the parent world linked list.
|
inline |
Orientation.
|
inline |
Parent world or NULL.
|
inline |
AI system peer.
|
inline |
Position.
|
inline |
Scaling.
|
inline |
Shape list.
|
inline |
|
inline |
Space type to navigate.
void deNavigationBlocker::NotifyShapeListChanged | ( | ) |
Notifies the peers that the shape list changed.
void deNavigationBlocker::SetBlockingPriority | ( | int | priority | ) |
Set blocking priority.
Blocks navigation meshes with a smaller or equal blocking priority.
void deNavigationBlocker::SetEnabled | ( | bool | enabled | ) |
Set if blocker is enabled.
void deNavigationBlocker::SetLayer | ( | int | layer | ) |
Set layer number.
void deNavigationBlocker::SetLLWorldNext | ( | deNavigationBlocker * | blocker | ) |
Set next blocker in the parent world linked list.
void deNavigationBlocker::SetLLWorldPrev | ( | deNavigationBlocker * | blocker | ) |
Set next blocker in the parent world linked list.
void deNavigationBlocker::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deNavigationBlocker::SetParentWorld | ( | deWorld * | world | ) |
Set parent world or NULL.
void deNavigationBlocker::SetPeerAI | ( | deBaseAINavigationBlocker * | peer | ) |
Set AI system peer.
void deNavigationBlocker::SetPosition | ( | const decDVector & | position | ) |
Set position.
void deNavigationBlocker::SetScaling | ( | const decVector & | scaling | ) |
Set scaling.
void deNavigationBlocker::SetSpaceType | ( | deNavigationSpace::eSpaceTypes | spaceType | ) |
Set space type to navigate.