Sleeping Wombat GUI  0.100
swGUI
TimelineBase.h
Go to the documentation of this file.
1 #pragma once
2 
10 
11 #include <memory>
12 
17 class TimelineBase;
20 
21 
22 
26 class TimelineBase : public EngineObject
27 {
28 private:
29 protected:
30 
32  TimelineBaseWPtr m_parent;
33 
34 public:
35  explicit TimelineBase () = default;
36  explicit TimelineBase ( TimelineBasePtr parent );
37  virtual ~TimelineBase () = default;
38 
39 
40 
41  virtual void Update () = 0;
42  virtual void Start () = 0;
43  virtual void Stop () = 0;
44  virtual void Pause () = 0;
45 
46  virtual void SetTimeline ( TimelineBasePtr& parent ) = 0;
47 
48  virtual bool IsPaused () = 0;
49 
52  inline TimeType GetTime () { return m_currentTime; };
53 };
54 
55 
virtual ~TimelineBase()=default
Base class for timelines.
Definition: TimelineBase.h:26
virtual void Start()=0
DEFINE_PTR_TYPE(TimelineBase)
TimelineBaseWPtr m_parent
Definition: TimelineBase.h:32
virtual void Update()=0
TimeType GetTime()
Current time.
Definition: TimelineBase.h:52
TimelineBase()=default
TimeType m_currentTime
Evaluated timeline time. Time is evaluated once.
Definition: TimelineBase.h:31
Klasa bazowa dla obiektów, które mają być dostępne w edytorze poprzez rttr. Należy po niej odziedzicz...
Definition: EngineObject.h:22
virtual void SetTimeline(TimelineBasePtr &parent)=0
virtual void Pause()=0
virtual void Stop()=0
double TimeType
Definition: TypesDefinitions.h:39
virtual bool IsPaused()=0
DEFINE_WPTR_TYPE(TimelineBase)