OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
29 {
30 public:
31  C4ObjectInfo();
32  ~C4ObjectInfo();
33 public:
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
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
int32_t ControlCount
Definition: C4ObjectInfo.h:38
char Filename[_MAX_PATH+1]
Definition: C4ObjectInfo.h:40
C4ObjectInfo * Next
Definition: C4ObjectInfo.h:41
#define _MAX_PATH
void SetBirthday()
Definition: C4Def.h:98
class C4Def * pDef
Definition: C4ObjectInfo.h:39
bool WasInAction
Definition: C4ObjectInfo.h:34
bool Load(C4Group &hGroup)
bool Save(C4Group &hGroup, bool fStoreTiny, C4DefList *pDefs)
int32_t InActionTime
Definition: C4ObjectInfo.h:36