Skip to content

Commit 79d6b80

Browse files
committed
Some creature flags, including IsAlpha
1 parent d3c4313 commit 79d6b80

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Spore ModAPI/Spore/Simulator/cCreatureBase.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ namespace Simulator
7373

7474
class cCreatureAnimal;
7575

76+
enum CreatureFlags
77+
{
78+
kCreatureFlagIsAlpha = 0x1,
79+
80+
kCreatureFlagIsHungry = 0x100,
81+
kCreatureFlagIsPlayerAvatar = 0x200,
82+
};
83+
7684
/// The base class for all creatures in the Simulator.
7785
class cCreatureBase
7886
: /* 00h */ public cGameData
@@ -243,7 +251,8 @@ namespace Simulator
243251
/* B4Ch */ int field_B4C; //TODO cBehaviorTreeData
244252
/* B50h */ cCreatureBasePtr mpWhoIsInteractingWithMe;
245253
/* B54h */ AnimatedCreaturePtr mpAnimatedCreature;
246-
/* B58h */ int mGeneralFlags; // 0x200 IsPlayerAvatar, 0x100 hasHunger?
254+
/// CreatureFlags
255+
/* B58h */ int mGeneralFlags;
247256
/* B5Ch */ bool field_B5C;
248257
/* B5Dh */ bool mbTeleport;
249258
/* B5Eh */ bool mbDead;

0 commit comments

Comments
 (0)