CoverPoint
Engine/source/navigation/coverPoint.h
SceneObject
bool
onAdd()
Called when the object is added to 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.
setTransform(const MatrixF & mat)
Sets the Object -> World transform.
prepRenderImage(SceneRenderState * state)
Called when the SceneManager is ready for the registration of render instances.
render(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)
NetObject
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Instructs this object to pack its state for transfer over the network.
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Private Types
MaskBits { TransformMask = Parent::NextFreeMask << 0 NextFreeMask = Parent::NextFreeMask << 1 }
Network mask bits.
Parent
GFXVertexPCN
VertexType
Public Types
Size { Prone Crouch Stand NumSizes }
Amount of cover provided at this point.
Private Static Attributes
GFXVertexBufferHandle< VertexType >
smVertexBuffer [NumSizes]
Private Attributes
Public Functions
Get the normal of this point (i.e., the direction from which it provides cover).
bool
Is this point occupied?
bool
peekLeft()
bool
peekOver()
bool
setOccupied(bool occ)
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)