CoverPoint

Engine/source/navigation/coverPoint.h

More...

SceneObject

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

Called when the editor is activated.

Called when the editor is deactivated.

Called after any property of the object is changed in the world editor.

Sets the Object -> World transform.

Called when the SceneManager is ready for the registration of render instances.

NetObject

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Instructs this object to read state data previously packed with packUpdate.

Private Types

enum
MaskBits {
  TransformMask = Parent::NextFreeMask << 0
  NextFreeMask = Parent::NextFreeMask << 1
}

Network mask bits.

Parent 
GFXVertexPCN
VertexType 

Public Types

enum
Size {
  Prone 
  Crouch 
  Stand 
  NumSizes 
}

Amount of cover provided at this point.

Private Static Attributes

Private Attributes

bool

Is this point currently occupied?

bool

Can we look left around this cover?

bool

Can we look up over this cover?

bool

Can we look right around this cover?

Quality of this point as cover.

Size of this point.

Public Functions

Get the normal of this point (i.e., the direction from which it provides cover).

bool

Is this point occupied?

bool
bool
bool
setOccupied(bool occ)
setPeek(bool left, bool right, bool over)

Public Static Functions

Init static buffers for rendering.

Detailed Description

SceneObject

onAdd()

Reimplemented from: SceneObject

onRemove()

Reimplemented from: SceneObject

onEditorEnable()

Reimplemented from: SimObject

onEditorDisable()

Reimplemented from: SimObject

inspectPostApply()

Reimplemented from: SceneObject

setTransform(const MatrixF & mat)

Reimplemented from: SceneObject

prepRenderImage(SceneRenderState * state)

Reimplemented from: SceneObject

render(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)

initPersistFields()

NetObject

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: SceneObject

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject

Private Types

MaskBits

Enumerator

TransformMask = Parent::NextFreeMask << 0
NextFreeMask = Parent::NextFreeMask << 1

Network mask bits.

typedef SceneObject Parent 
typedef GFXVertexPCN VertexType 

Public Types

Size

Enumerator

Prone
Crouch
Stand
NumSizes

Amount of cover provided at this point.

Private Static Attributes

GFXStateBlockRef smNormalSB 
GFXVertexBufferHandle< VertexType > smVertexBuffer [NumSizes]

Private Attributes

bool mOccupied 

Is this point currently occupied?

bool mPeekLeft 

Can we look left around this cover?

bool mPeekOver 

Can we look up over this cover?

bool mPeekRight 

Can we look right around this cover?

F32 mQuality 

Quality of this point as cover.

Size mSize 

Size of this point.

Public Functions

CoverPoint()

~CoverPoint()

DECLARE_CONOBJECT(CoverPoint )

getNormal()

Get the normal of this point (i.e., the direction from which it provides cover).

getQuality()

getSize()

isOccupied()

Is this point occupied?

peekLeft()

peekOver()

peekRight()

setOccupied(bool occ)

setPeek(bool left, bool right, bool over)

setSize(Size size)

Public Static Functions

initGFXResources()

Init static buffers for rendering.