OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
globalfx.cpp
Go to the documentation of this file.
1#include "globalfx.h"
2
5
6GlobalFx::GlobalFx(const std::shared_ptr<GlobalEffects::Effect>& h)
7 :h(h) {
8 }
9
11 :h(other.h) {
12 other.h = nullptr;
13 }
14
16 std::swap(h,other.h);
17 return *this;
18 }
19
21 if(h!=nullptr)
22 h->stop();
23 }
24
26 if(h==nullptr)
27 return 0;
28 uint64_t ret = h->timeLen;
29 if(ret==uint64_t(-1))
30 return h->timeLoop;
31 return ret;
32 }
uint64_t effectPrefferedTime() const
Definition globalfx.cpp:25
GlobalFx & operator=(GlobalFx &&other)
Definition globalfx.cpp:15