2009-05-08 13:28:41 +00:00
|
|
|
/*
|
|
|
|
* OpenClonk, http://www.openclonk.org
|
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Copyright (c) 1998-2000, Matthes Bender
|
|
|
|
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
|
|
|
|
* Copyright (c) 2009-2013, The OpenClonk Team and contributors
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
|
|
* "COPYING" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
|
|
|
|
* See accompanying file "TRADEMARK" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* To redistribute this file separately, substitute the full license texts
|
|
|
|
* for the above references.
|
2009-05-08 13:28:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Holds crew member information */
|
|
|
|
|
|
|
|
#ifndef INC_C4ObjectInfo
|
|
|
|
#define INC_C4ObjectInfo
|
|
|
|
|
|
|
|
#include <C4Surface.h>
|
|
|
|
#include <C4InfoCore.h>
|
|
|
|
#include <C4Object.h>
|
|
|
|
#include <C4FacetEx.h>
|
|
|
|
|
|
|
|
class C4ObjectInfo: public C4ObjectInfoCore
|
2010-03-28 17:58:21 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
C4ObjectInfo();
|
|
|
|
~C4ObjectInfo();
|
|
|
|
public:
|
|
|
|
bool WasInAction;
|
|
|
|
bool InAction;
|
|
|
|
int32_t InActionTime;
|
|
|
|
bool HasDied;
|
|
|
|
int32_t ControlCount;
|
2011-10-02 16:47:21 +00:00
|
|
|
class C4Def *pDef; // definition to ID - only resolved if defs were loaded at object info loading time
|
2010-03-28 17:58:21 +00:00
|
|
|
char Filename[_MAX_PATH+1];
|
|
|
|
C4ObjectInfo *Next;
|
|
|
|
public:
|
|
|
|
void Default();
|
|
|
|
void Clear();
|
|
|
|
void Evaluate();
|
|
|
|
void Retire();
|
|
|
|
void Recruit();
|
|
|
|
void SetBirthday();
|
|
|
|
bool Save(C4Group &hGroup, bool fStoreTiny, C4DefList *pDefs);
|
2011-08-05 12:58:16 +00:00
|
|
|
bool Load(C4Group &hGroup);
|
|
|
|
bool Load(C4Group &hMother, const char *szEntryname);
|
2010-03-28 17:58:21 +00:00
|
|
|
};
|
2009-05-08 13:28:41 +00:00
|
|
|
|
|
|
|
#endif
|