Emergency 20 Dokumentation  4.2.0
em5::multiplayer::HiddenData Class Reference

EMERGENCY 5 entity with a hidden component data cache for a single entity for multiplayer. More...

#include <HiddenData.h>

Inheritance diagram for em5::multiplayer::HiddenData:
em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent > em5::multiplayer::DataCacheBase

Public Member Functions

 HiddenData (const qsf::Entity &targetEntity)
 
virtual ~HiddenData ()
 
virtual bool prepareForUpdate (const qsf::Entity &targetEntity, const qsf::Clock &clock) override
 Prepares for an update. More...
 
virtual void updateData (qsf::game::BitStream &bitStream, bool force) override
 Updates the cache and writes any changed data to the given bit stream. More...
 
virtual void setData (const qsf::game::BitStream &bitStream, const int32 receivedHostTickCount) override
 Reads the data from the bit stream. More...
 
virtual void interpolate (qsf::Entity &targetEntity, const qsf::Clock &clock, const int32 receivedHostTickCount) override
 Does any interpolation steps needed to apply the cached data to the entity. More...
 
- Public Member Functions inherited from em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent >
 DataCacheComponentExistenceTrackingBase (const qsf::Entity &entity, bool noDestruction=false)
 Constructor. More...
 
- Public Member Functions inherited from em5::multiplayer::DataCacheBase
 DataCacheBase (const qsf::Entity &entity)
 Constructor. More...
 
virtual ~DataCacheBase ()
 Destructor. More...
 
virtual bool includeForPrepare (const int32 currentTickCount, bool entityIsVisible)
 Returns if the data cache item should be generally included into the current update cycle. More...
 

Additional Inherited Members

- Protected Member Functions inherited from em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent >
qsf::game::HiddenComponentgetComponent (const qsf::Entity &entity)
 
bool hasEntityComponentFromStream ()
 
bool hasEntityComponent ()
 
bool hasComponentExistenceChanged ()
 
- Protected Attributes inherited from em5::multiplayer::DataCacheBase
uint64 mEntityId
 

Detailed Description

EMERGENCY 5 entity with a hidden component data cache for a single entity for multiplayer.

Constructor & Destructor Documentation

em5::multiplayer::HiddenData::HiddenData ( const qsf::Entity targetEntity)
virtual em5::multiplayer::HiddenData::~HiddenData ( )
virtual

Member Function Documentation

virtual void em5::multiplayer::HiddenData::interpolate ( qsf::Entity targetEntity,
const qsf::Clock clock,
const int32  receivedHostTickCount 
)
overridevirtual

Does any interpolation steps needed to apply the cached data to the entity.

Reimplemented from em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent >.

virtual bool em5::multiplayer::HiddenData::prepareForUpdate ( const qsf::Entity targetEntity,
const qsf::Clock clock 
)
overridevirtual

Prepares for an update.

Returns
Returns true if data has change since last update

Reimplemented from em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent >.

virtual void em5::multiplayer::HiddenData::setData ( const qsf::game::BitStream bitStream,
const int32  receivedHostTickCount 
)
overridevirtual

Reads the data from the bit stream.

Reimplemented from em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent >.

virtual void em5::multiplayer::HiddenData::updateData ( qsf::game::BitStream bitStream,
bool  force 
)
overridevirtual

Updates the cache and writes any changed data to the given bit stream.

Reimplemented from em5::multiplayer::DataCacheComponentExistenceTrackingBase< qsf::game::HiddenComponent >.


The documentation for this class was generated from the following file: