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

EMERGENCY 5 entity with a time of day component data cache for a single entity for multiplayer. More...

#include <TimeOfDayData.h>

Inheritance diagram for em5::multiplayer::TimeOfDayData:
em5::multiplayer::DataCacheBase

Public Member Functions

 TimeOfDayData (const qsf::Entity &targetEntity)
 
virtual ~TimeOfDayData ()
 
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...
 
uint32 packTimeOfDay (glm::vec2 time)
 
glm::vec2 unpackTimeOfDay (uint32 packedTime)
 
- 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 Attributes inherited from em5::multiplayer::DataCacheBase
uint64 mEntityId
 

Detailed Description

EMERGENCY 5 entity with a time of day component data cache for a single entity for multiplayer.

Constructor & Destructor Documentation

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

Member Function Documentation

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

uint32 em5::multiplayer::TimeOfDayData::packTimeOfDay ( glm::vec2  time)
virtual bool em5::multiplayer::TimeOfDayData::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::TimeOfDayData::setData ( const qsf::game::BitStream bitStream,
const int32  receivedHostTickCount 
)
overridevirtual

Reads the data from the bit stream.

Implements em5::multiplayer::DataCacheBase.

glm::vec2 em5::multiplayer::TimeOfDayData::unpackTimeOfDay ( uint32  packedTime)
virtual void em5::multiplayer::TimeOfDayData::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: