Polyphase Game Engine
Loading...
Searching...
No Matches
TimelinePlayer Class Reference

#include <TimelinePlayer.h>

Inheritance diagram for TimelinePlayer:
Node Object

Public Member Functions

 DECLARE_NODE (TimelinePlayer, Node)
 
 TimelinePlayer ()
 
virtual ~TimelinePlayer ()
 
virtual void Create () override
 
virtual void Destroy () override
 
virtual void Tick (float deltaTime) override
 
virtual void EditorTick (float deltaTime) override
 
virtual void Start () override
 
virtual void Stop () override
 
virtual void GatherProperties (std::vector< Property > &outProps) override
 
virtual const char * GetTypeName () const override
 
void Play ()
 
void Pause ()
 
void StopPlayback ()
 
void SetTime (float time)
 
float GetTime () const
 
float GetDuration () const
 
bool IsPlaying () const
 
bool IsPaused () const
 
float GetProgress () const
 
void SetTimeline (Timeline *timeline)
 
TimelineGetTimeline () const
 
TimelineRef GetTimelineRef () const
 
void SetPlayOnStart (bool playOnStart)
 
bool GetPlayOnStart () const
 
TimelineInstanceGetInstance ()
 
void EnsureInstance ()
 
void EvaluateTimeline (float time)
 
- Public Member Functions inherited from Node
 DECLARE_FACTORY_MANAGER (Node)
 
 DECLARE_FACTORY (Node, Node)
 
 DECLARE_OBJECT (Node, Object)
 
 DECLARE_SCRIPT_LINK_BASE (Node)
 
 Node ()
 
virtual ~Node ()
 
void DestroyDeferred ()
 
void Doom ()
 
virtual void SaveStream (Stream &stream, Platform platform)
 
virtual void LoadStream (Stream &stream, Platform platform, uint32_t version)
 
virtual void Copy (Node *srcNode, bool recurse)
 
virtual void Render (PipelineConfig pipelineConfig)
 
virtual void Awake ()
 
virtual void PrepareTick (std::vector< NodePtrWeak > &outTickNodes, bool game, bool recurse)
 
uint32_t GetLastTickedFrame () const
 
virtual void Render ()
 
virtual void OnInstanced ()
 
virtual VertexType GetVertexType () const
 
virtual void GatherReplicatedData (std::vector< NetDatum > &outData)
 
virtual void GatherNetFuncs (std::vector< NetFunc > &outFuncs)
 
void GatherPropertyOverrides (std::vector< Property > &outOverrides)
 
void ApplyPropertyOverrides (const std::vector< Property > &overs)
 
virtual void BeginOverlap (Primitive3D *thisComp, Primitive3D *otherComp)
 
virtual void EndOverlap (Primitive3D *thisComp, Primitive3D *otherComp)
 
virtual void OnCollision (Primitive3D *thisComp, Primitive3D *otherComp, glm::vec3 impactPoint, glm::vec3 impactNormal, btPersistentManifold *manifold)
 
NodeId GetNodeId () const
 
uint64_t GetPersistentUuid () const
 
void SetPersistentUuid (uint64_t uuid)
 
void EnsurePersistentUuid ()
 
void EmitSignal (const std::string &name, const std::vector< Datum > &args)
 
void ConnectSignal (const std::string &name, Node *listener, SignalHandlerFP func)
 
void ConnectSignal (const std::string &name, Node *listener, const ScriptFunc &func)
 
void DisconnectSignal (const std::string &name, Node *listener)
 
void RenderShadow ()
 
void RenderSelected (bool renderChildren)
 
NodeCreateChild (TypeId nodeType)
 
NodeCreateChild (const char *typeName)
 
NodeCreateChildClone (Node *srcNode, bool recurse)
 
NodePtr Clone (bool recurse, bool instantiateLinkedScene=true, bool resolveNodePaths=false)
 
void DestroyAllChildren ()
 
NodeGetRoot ()
 
bool IsWorldRoot () const
 
NodeGetSubRoot ()
 
template<class NodeClass >
NodeClass * CreateChild ()
 
template<class NodeClass >
SharedPtr< NodeClass > CreateChildSp ()
 
template<class NodeClass >
NodeClass * CreateChild (const char *name)
 
template<class NodeClass >
SharedPtr< NodeClass > CreateChildSp (const char *name)
 
bool IsDestroyed () const
 
bool IsPendingDestroy () const
 
bool IsDoomed () const
 
bool HasStarted () const
 
bool HasAwoken () const
 
void EnableTick (bool enable)
 
bool IsTickEnabled () const
 
virtual void SetWorld (World *world, bool subRoot)
 
WorldGetWorld ()
 
void SetScene (Scene *scene)
 
SceneGetScene ()
 
uint8_t GetTargetScreen () const
 
void SetTargetScreen (uint8_t screen)
 
std::vector< NetDatum > & GetReplicatedData ()
 
void SetNetId (NetId id)
 
NetId GetNetId () const
 
NetHostId GetOwningHost () const
 
void SetOwningHost (NetHostId hostId, bool setAsPawn=false)
 
void SetReplicate (bool replicate)
 
bool IsReplicated () const
 
void SetReplicateTransform (bool repTransform)
 
bool IsTransformReplicated () const
 
void ForceReplication ()
 
void ClearForcedReplication ()
 
bool NeedsForcedReplication ()
 
virtual bool CheckNetRelevance (Node *playerNode)
 
bool IsAlwaysRelevant () const
 
void SetAlwaysRelevant (bool alwaysRelevant)
 
bool HasTag (const std::string &tag)
 
void AddTag (const std::string &tag)
 
void RemoveTag (const std::string &tag)
 
void SetName (const std::string &newName)
 
const std::string & GetName () const
 
virtual void SetActive (bool active)
 
bool IsActive (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
bool IsVisible (bool recurse=false) const
 
void SetTransient (bool transient)
 
virtual bool IsTransient () const
 
void SetPersistent (bool persistent)
 
bool IsPersistent () const
 
void SetDefault (bool isDefault)
 
bool IsDefault () const
 
void SetUserdataCreated (bool created)
 
bool IsUserdataCreated () const
 
virtual DrawData GetDrawData ()
 
virtual bool IsNode3D () const
 
virtual bool IsWidget () const
 
virtual bool IsPrimitive3D () const
 
virtual bool IsLight3D () const
 
NodeGetParent ()
 
const NodeGetParent () const
 
const std::vector< NodePtr > & GetChildren () const
 
virtual void Attach (Node *parent, bool keepWorldTransform=false, int32_t index=-1)
 
void Detach (bool keepWorldTransform=false)
 
void AddChild (Node *child, int32_t index=-1)
 
void RemoveChild (Node *child)
 
void RemoveChild (int32_t index)
 
template<typename T >
void AddChild (const SharedPtr< T > &child, int32_t index=-1)
 
template<typename T >
void RemoveChild (const SharedPtr< Node > &child)
 
int32_t FindChildIndex (const std::string &name) const
 
int32_t FindChildIndex (Node *child) const
 
NodeFindChild (const std::string &name, bool recurse) const
 
NodeFindChildWithTag (const std::string &name, bool recurse) const
 
NodeFindDescendant (const std::string &name)
 
NodeFindAncestor (const std::string &name)
 
bool HasAncestor (Node *node)
 
NodeGetChild (int32_t index) const
 
NodeGetChildByType (TypeId type) const
 
uint32_t GetNumChildren () const
 
int32_t FindParentNodeIndex () const
 
void SetHitCheckId (uint32_t id)
 
uint32_t GetHitCheckId () const
 
bool IsLateTickEnabled () const
 
void EnableLateTick (bool enable)
 
ScriptGetScript ()
 
void SetScriptFile (const std::string &fileName)
 
bool DoChildrenHaveUniqueNames () const
 
void BreakSceneLink ()
 
bool IsSceneLinked (bool ignoreInPie=true) const
 
bool IsSceneLinkedChild (bool ignoreInPie=true)
 
bool IsForeign () const
 
bool HasAuthority () const
 
bool IsOwned () const
 
bool IsLocallyControlled () const
 
Datum GetField (const std::string &key)
 
void SetField (const std::string &name, const Datum &value)
 
Datum GetField (int32_t key)
 
void SetField (int32_t key, const Datum &value)
 
Datum CallFunction (const std::string &name, const std::vector< Datum > &args={})
 
NetFuncFindNetFunc (const char *name)
 
NetFuncFindNetFunc (uint16_t index)
 
void InvokeNetFunc (const char *name)
 
void InvokeNetFunc (const char *name, Datum param0)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5, Datum param6)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5, Datum param6, Datum param7)
 
void InvokeNetFunc (const char *name, const std::vector< Datum > &params)
 
const WeakPtr< Node > & GetSelfPtr () const
 
template<typename T >
T * FindChild (const std::string &name, bool recurse)
 
template<typename T >
void Traverse (T func, bool inverted=false)
 
template<typename T >
bool ForEach (T func, bool inverted=false)
 
- Public Member Functions inherited from Object
virtual ~Object ()=default
 
virtual const char * RuntimeName () const =0
 
virtual const char * RuntimeParentName () const =0
 
virtual RuntimeId InstanceRuntimeId () const =0
 
virtual ObjectQueryInterface (RuntimeId id) const
 
virtual bool Is (RuntimeId id) const
 
virtual bool Is (const char *name) const
 
virtual bool DrawCustomProperty (Property &prop)
 
template<typename T >
T * As () const
 
virtual bool Equals (const Object *rhs) const
 

Protected Attributes

TimelineRef mTimeline
 
TimelineInstancemInstance = nullptr
 
float mCurrentTime = 0.0f
 
bool mPlaying = false
 
bool mPaused = false
 
bool mPlayOnStart = false
 
- Protected Attributes inherited from Node
std::string mName
 
WorldmWorld = nullptr
 
NodePtrWeak mParent
 
NodePtrWeak mSelf
 
std::vector< NodePtrmChildren
 
std::unordered_map< std::string, Node * > mChildNameMap
 
std::unordered_map< std::string, SignalmSignalMap
 
std::string mScriptFile
 
uint32_t mLastTickedFrame = 0
 
bool mActive = true
 
bool mVisible = true
 
bool mTransient = false
 
bool mPersistent = false
 
bool mDefault = false
 
bool mUserdataCreated = false
 
bool mHasStarted = false
 
bool mHasAwoken = false
 
bool mDestroyed = false
 
bool mTickEnabled = true
 
bool mLateTick = false
 
SceneRef mScene
 
uint8_t mTargetScreen = 0
 
std::vector< std::string > mTags
 
NodeId mNodeId = INVALID_NODE_ID
 
uint64_t mPersistentUuid = 0
 
std::vector< NetDatummReplicatedData
 
NetId mNetId = INVALID_NET_ID
 
NetHostId mOwningHost = INVALID_HOST_ID
 
bool mReplicate = false
 
bool mReplicateTransform = false
 
bool mForceReplicate = false
 
bool mAlwaysRelevant = true
 
ScriptmScript = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from Node
static NodePtr Construct (const std::string &name)
 
static NodePtr Construct (TypeId typeId)
 
static void Destruct (Node *node)
 
static void ProcessPendingDestroys ()
 
static void RegisterNetFuncs (Node *node)
 
static void Deleter (Node *node)
 
template<class NodeClass >
static SharedPtr< NodeClass > Construct ()
 
- Static Public Member Functions inherited from Object
static const char * ClassRuntimeName ()
 
- Protected Member Functions inherited from Node
void TickCommon (float deltaTime)
 
virtual void SetParent (Node *parent)
 
void ValidateUniqueChildName (Node *newChild)
 
void SendNetFunc (NetFunc *func, uint32_t numParams, const Datum **params)
 
- Static Protected Member Functions inherited from Node
static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
static bool OnRep_OwningHost (Datum *datum, uint32_t index, const void *newValue)
 
- Static Protected Attributes inherited from Node
static std::unordered_map< TypeId, NetFuncMapsTypeNetFuncMap
 
static std::unordered_set< NodePtrWeaksPendingDestroySet
 
static NodeId sNextNodeId = NodeId(1)
 

Constructor & Destructor Documentation

◆ TimelinePlayer()

TimelinePlayer::TimelinePlayer ( )

◆ ~TimelinePlayer()

TimelinePlayer::~TimelinePlayer ( )
virtual

Member Function Documentation

◆ Create()

void TimelinePlayer::Create ( )
overridevirtual

Reimplemented from Node.

◆ DECLARE_NODE()

TimelinePlayer::DECLARE_NODE ( TimelinePlayer  ,
Node   
)

◆ Destroy()

void TimelinePlayer::Destroy ( )
overridevirtual

Reimplemented from Node.

◆ EditorTick()

void TimelinePlayer::EditorTick ( float  deltaTime)
overridevirtual

Reimplemented from Node.

◆ EnsureInstance()

void TimelinePlayer::EnsureInstance ( )

◆ EvaluateTimeline()

void TimelinePlayer::EvaluateTimeline ( float  time)

◆ GatherProperties()

void TimelinePlayer::GatherProperties ( std::vector< Property > &  outProps)
overridevirtual

Reimplemented from Node.

◆ GetDuration()

float TimelinePlayer::GetDuration ( ) const

◆ GetInstance()

TimelineInstance * TimelinePlayer::GetInstance ( )
inline

◆ GetPlayOnStart()

bool TimelinePlayer::GetPlayOnStart ( ) const
inline

◆ GetProgress()

float TimelinePlayer::GetProgress ( ) const

◆ GetTime()

float TimelinePlayer::GetTime ( ) const

◆ GetTimeline()

Timeline * TimelinePlayer::GetTimeline ( ) const

◆ GetTimelineRef()

TimelineRef TimelinePlayer::GetTimelineRef ( ) const
inline

◆ GetTypeName()

const char * TimelinePlayer::GetTypeName ( ) const
overridevirtual

Reimplemented from Node.

◆ IsPaused()

bool TimelinePlayer::IsPaused ( ) const

◆ IsPlaying()

bool TimelinePlayer::IsPlaying ( ) const

◆ Pause()

void TimelinePlayer::Pause ( )

◆ Play()

void TimelinePlayer::Play ( )

◆ SetPlayOnStart()

void TimelinePlayer::SetPlayOnStart ( bool  playOnStart)
inline

◆ SetTime()

void TimelinePlayer::SetTime ( float  time)

◆ SetTimeline()

void TimelinePlayer::SetTimeline ( Timeline timeline)

◆ Start()

void TimelinePlayer::Start ( )
overridevirtual

Reimplemented from Node.

◆ Stop()

void TimelinePlayer::Stop ( )
overridevirtual

Reimplemented from Node.

◆ StopPlayback()

void TimelinePlayer::StopPlayback ( )

◆ Tick()

void TimelinePlayer::Tick ( float  deltaTime)
overridevirtual

Reimplemented from Node.

Member Data Documentation

◆ mCurrentTime

float TimelinePlayer::mCurrentTime = 0.0f
protected

◆ mInstance

TimelineInstance* TimelinePlayer::mInstance = nullptr
protected

◆ mPaused

bool TimelinePlayer::mPaused = false
protected

◆ mPlaying

bool TimelinePlayer::mPlaying = false
protected

◆ mPlayOnStart

bool TimelinePlayer::mPlayOnStart = false
protected

◆ mTimeline

TimelineRef TimelinePlayer::mTimeline
protected

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