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
3
GlobalFx::GlobalFx
() {
4
}
5
6
GlobalFx::GlobalFx
(
const
std::shared_ptr<GlobalEffects::Effect>& h)
7
:h(h) {
8
}
9
10
GlobalFx::GlobalFx
(
GlobalFx
&& other)
11
:h(other.h) {
12
other.h =
nullptr
;
13
}
14
15
GlobalFx
&
GlobalFx::operator =
(
GlobalFx
&& other) {
16
std::swap(h,other.h);
17
return
*
this
;
18
}
19
20
GlobalFx::~GlobalFx
() {
21
if
(h!=
nullptr
)
22
h->stop();
23
}
24
25
uint64_t
GlobalFx::effectPrefferedTime
()
const
{
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
}
GlobalFx
Definition
globalfx.h:6
GlobalFx::~GlobalFx
~GlobalFx()
Definition
globalfx.cpp:20
GlobalFx::effectPrefferedTime
uint64_t effectPrefferedTime() const
Definition
globalfx.cpp:25
GlobalFx::operator=
GlobalFx & operator=(GlobalFx &&other)
Definition
globalfx.cpp:15
GlobalFx::GlobalFx
GlobalFx()
Definition
globalfx.cpp:3
globalfx.h
game
world
objects
globalfx.cpp
Generated by
1.9.8