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

EMERGENCY 5 entity with a movable componet data cache for a single entity for multiplayer. More...

#include <MovableData.h>

Inheritance diagram for em5::multiplayer::MovableData:
em5::multiplayer::DataCacheBase

Public Member Functions

 MovableData (const qsf::Entity &targetEntity)
 
virtual ~MovableData ()
 
virtual bool includeForPrepare (const int32 currentTickCount, bool entityIsVisible)
 Returns if the data cache item should be generally included into the current update cycle. 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...
 

Additional Inherited Members

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

Detailed Description

EMERGENCY 5 entity with a movable componet data cache for a single entity for multiplayer.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool em5::multiplayer::MovableData::includeForPrepare ( const int32  currentTickCount,
bool  entityIsVisible 
)
virtual

Returns if the data cache item should be generally included into the current update cycle.

Reimplemented from em5::multiplayer::DataCacheBase.

virtual void em5::multiplayer::MovableData::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.

Implements em5::multiplayer::DataCacheBase.

virtual bool em5::multiplayer::MovableData::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::DataCacheBase.

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

Reads the data from the bit stream.

Implements em5::multiplayer::DataCacheBase.

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

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

Implements em5::multiplayer::DataCacheBase.


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