OpenClonk
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
a
c
d
e
g
i
l
m
o
r
t
u
v
Variables
Typedefs
Enumerations
Enumerator
_
b
c
f
g
i
l
m
n
o
p
r
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
n
o
p
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
i
m
n
p
q
r
s
t
w
x
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Properties
Related Functions
:
c
d
e
f
i
l
o
p
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
q
r
s
t
u
v
w
x
z
Variables
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Typedefs
b
c
d
g
l
m
o
p
r
s
t
u
w
Enumerations
_
c
l
m
s
t
v
Enumerator
a
c
d
e
g
k
m
n
p
r
s
t
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
C4Action.cpp
Go to the documentation of this file.
1
/*
2
* OpenClonk, http://www.openclonk.org
3
*
4
* Copyright (c) 1998-2000, Matthes Bender
5
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
6
* Copyright (c) 2013-2016, The OpenClonk Team and contributors
7
*
8
* Distributed under the terms of the ISC license; see accompanying file
9
* "COPYING" for details.
10
*
11
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
12
* See accompanying file "TRADEMARK" for details.
13
*
14
* To redistribute this file separately, substitute the full license texts
15
* for the above references.
16
*/
17
18
/* The C4Action class is merely a simple data structure */
19
20
#include "
C4Include.h
"
21
#include "
object/C4Object.h
"
22
23
C4Action::C4Action
()
24
{
25
Default
();
26
}
27
28
C4Action::~C4Action
() =
default
;
29
30
void
C4Action::Default
()
31
{
32
Dir
=
DIR_None
;
33
DrawDir
=
Dir
;
34
ComDir
=
COMD_Stop
;
35
Time
= 0;
36
Data
= 0;
37
Target
=
nullptr
;
38
Target2
=
nullptr
;
39
Phase
= 0;
40
PhaseDelay
= 0;
41
Facet
.
Default
();
42
FacetX
= 0;
43
FacetY
= 0;
44
t_attach
=
CNAT_None
;
45
Animation
=
nullptr
;
46
}
47
48
void
C4Action::CompileFunc
(
StdCompiler
*comp)
49
{
50
// Note: Compiled directly into "Object"-categories, so beware of name clashes (see C4Object::CompileFunc)
51
comp->
Value
(
mkNamingAdapt
(
Dir
,
"Dir"
,
DIR_None
));
52
comp->
Value
(
mkNamingAdapt
(
ComDir
,
"ComDir"
,
COMD_Stop
));
53
comp->
Value
(
mkNamingAdapt
(
Time
,
"ActionTime"
, 0 ));
54
comp->
Value
(
mkNamingAdapt
(
Data
,
"ActionData"
, 0 ));
55
comp->
Value
(
mkNamingAdapt
(
Phase
,
"Phase"
, 0 ));
56
comp->
Value
(
mkNamingAdapt
(
PhaseDelay
,
"PhaseDelay"
, 0 ));
57
}
CNAT_None
const BYTE CNAT_None
Definition:
C4Constants.h:108
C4Include.h
C4Object.h
DIR_None
#define DIR_None
Definition:
C4Object.h:40
COMD_Stop
#define COMD_Stop
Definition:
C4Object.h:50
mkNamingAdapt
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition:
StdAdaptors.h:92
C4Action::C4Action
C4Action()
Definition:
C4Action.cpp:23
C4Action::Facet
C4Facet Facet
Definition:
C4Object.h:88
C4Action::Data
int32_t Data
Definition:
C4Object.h:84
C4Action::t_attach
int32_t t_attach
Definition:
C4Object.h:86
C4Action::CompileFunc
void CompileFunc(StdCompiler *pComp)
Definition:
C4Action.cpp:48
C4Action::Time
int32_t Time
Definition:
C4Object.h:83
C4Action::PhaseDelay
int32_t PhaseDelay
Definition:
C4Object.h:85
C4Action::Phase
int32_t Phase
Definition:
C4Object.h:85
C4Action::Default
void Default()
Definition:
C4Action.cpp:30
C4Action::Target2
C4ObjectPtr Target2
Definition:
C4Object.h:87
C4Action::ComDir
int32_t ComDir
Definition:
C4Object.h:82
C4Action::Dir
int32_t Dir
Definition:
C4Object.h:80
C4Action::FacetY
int32_t FacetY
Definition:
C4Object.h:89
C4Action::DrawDir
int32_t DrawDir
Definition:
C4Object.h:81
C4Action::FacetX
int32_t FacetX
Definition:
C4Object.h:89
C4Action::Animation
StdMeshInstanceAnimationNode * Animation
Definition:
C4Object.h:90
C4Action::~C4Action
~C4Action()
C4Action::Target
C4ObjectPtr Target
Definition:
C4Object.h:87
C4Facet::Default
void Default()
Definition:
C4Facet.cpp:31
StdCompiler
Definition:
StdCompiler.h:38
StdCompiler::Value
void Value(const T &rStruct)
Definition:
StdCompiler.h:161
openclonk
src
object
C4Action.cpp
Generated on Fri Jun 13 2025 04:33:15 for OpenClonk by
1.9.1