Emergency 20 Dokumentation  4.2.0
em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType > Class Template Reference

EMERGENCY 5 multiplayer data cache base class which tracks component existence. More...

#include <DataCacheComponentExistenceTrackingBase.h>

Inheritance diagram for em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >:
em5::multiplayer::DataCacheBase

Public Member Functions

 DataCacheComponentExistenceTrackingBase (const qsf::Entity &entity, bool noDestruction=false)
 Constructor. More...
 
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::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...
 

Protected Member Functions

TrackedComponentType * getComponent (const qsf::Entity &entity)
 
bool hasEntityComponentFromStream ()
 
bool hasEntityComponent ()
 
bool hasComponentExistenceChanged ()
 

Additional Inherited Members

- Protected Attributes inherited from em5::multiplayer::DataCacheBase
uint64 mEntityId
 

Detailed Description

template<class TrackedComponentType>
class em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >

EMERGENCY 5 multiplayer data cache base class which tracks component existence.

Constructor & Destructor Documentation

template<class TrackedComponentType >
em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >::DataCacheComponentExistenceTrackingBase ( const qsf::Entity entity,
bool  noDestruction = false 
)
inline

Constructor.

Member Function Documentation

template<class TrackedComponentType >
TrackedComponentType * em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >::getComponent ( const qsf::Entity entity)
inlineprotected
template<class TrackedComponentType >
bool em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >::hasComponentExistenceChanged ( )
inlineprotected
template<class TrackedComponentType >
bool em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >::hasEntityComponent ( )
inlineprotected
template<class TrackedComponentType >
bool em5::multiplayer::DataCacheComponentExistenceTrackingBase< TrackedComponentType >::hasEntityComponentFromStream ( )
inlineprotected

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