OpenClonk
C4ObjectInfo.h
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) 2009-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
/* Holds crew member information */
19
20
#ifndef INC_C4ObjectInfo
21
#define INC_C4ObjectInfo
22
23
#include "
graphics/C4FacetEx.h
"
24
#include "
graphics/C4Surface.h
"
25
#include "
object/C4InfoCore.h
"
26
#include "
object/C4Object.h
"
27
28
class
C4ObjectInfo
:
public
C4ObjectInfoCore
29
{
30
public
:
31
C4ObjectInfo
();
32
~C4ObjectInfo
();
33
public
:
34
bool
WasInAction
;
35
bool
InAction
;
36
int32_t
InActionTime
;
37
bool
HasDied
;
38
int32_t
ControlCount
;
39
class
C4Def
*
pDef
;
// definition to ID - only resolved if defs were loaded at object info loading time
40
char
Filename
[
_MAX_PATH_LEN
];
41
C4ObjectInfo
*
Next
;
42
public
:
43
void
Default
();
44
void
Clear
();
45
void
Evaluate
();
46
void
Retire
();
47
void
Recruit
();
48
void
SetBirthday
();
49
bool
Save
(
C4Group
&hGroup,
bool
fStoreTiny,
C4DefList
*pDefs);
50
bool
Load
(
C4Group
&hGroup);
51
bool
Load
(
C4Group
&hMother,
const
char
*szEntryname);
52
};
53
54
#endif
C4FacetEx.h
C4InfoCore.h
C4Object.h
C4Surface.h
_MAX_PATH_LEN
#define _MAX_PATH_LEN
Definition:
PlatformAbstraction.h:188
C4Def
Definition:
C4Def.h:99
C4DefList
Definition:
C4DefList.h:26
C4Group
Definition:
C4Group.h:136
C4ObjectInfoCore
Definition:
C4InfoCore.h:32
C4ObjectInfo
Definition:
C4ObjectInfo.h:29
C4ObjectInfo::Next
C4ObjectInfo * Next
Definition:
C4ObjectInfo.h:41
C4ObjectInfo::Default
void Default()
Definition:
C4ObjectInfo.cpp:47
C4ObjectInfo::Clear
void Clear()
Definition:
C4ObjectInfo.cpp:189
C4ObjectInfo::SetBirthday
void SetBirthday()
Definition:
C4ObjectInfo.cpp:228
C4ObjectInfo::Load
bool Load(C4Group &hGroup)
Definition:
C4ObjectInfo.cpp:83
C4ObjectInfo::Save
bool Save(C4Group &hGroup, bool fStoreTiny, C4DefList *pDefs)
Definition:
C4ObjectInfo.cpp:91
C4ObjectInfo::C4ObjectInfo
C4ObjectInfo()
Definition:
C4ObjectInfo.cpp:37
C4ObjectInfo::HasDied
bool HasDied
Definition:
C4ObjectInfo.h:37
C4ObjectInfo::~C4ObjectInfo
~C4ObjectInfo()
Definition:
C4ObjectInfo.cpp:42
C4ObjectInfo::Filename
char Filename[_MAX_PATH_LEN]
Definition:
C4ObjectInfo.h:40
C4ObjectInfo::InAction
bool InAction
Definition:
C4ObjectInfo.h:35
C4ObjectInfo::pDef
class C4Def * pDef
Definition:
C4ObjectInfo.h:39
C4ObjectInfo::ControlCount
int32_t ControlCount
Definition:
C4ObjectInfo.h:38
C4ObjectInfo::Recruit
void Recruit()
Definition:
C4ObjectInfo.cpp:194
C4ObjectInfo::Retire
void Retire()
Definition:
C4ObjectInfo.cpp:216
C4ObjectInfo::InActionTime
int32_t InActionTime
Definition:
C4ObjectInfo.h:36
C4ObjectInfo::Evaluate
void Evaluate()
Definition:
C4ObjectInfo.cpp:180
C4ObjectInfo::WasInAction
bool WasInAction
Definition:
C4ObjectInfo.h:34
openclonk
src
object
C4ObjectInfo.h
Generated on Fri May 16 2025 04:33:15 for OpenClonk by
1.9.1