From 42be37f4ad99fc8580415fed89939e305d56193e Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 20 May 2025 16:41:03 -0300 Subject: implement `main.cc`, `shm.cc`, and `time.cc` + overall tweeks --- src/creature.hh | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'src/creature.hh') diff --git a/src/creature.hh b/src/creature.hh index 8f0917a..2b19836 100644 --- a/src/creature.hh +++ b/src/creature.hh @@ -2,6 +2,8 @@ #define TIBIA_CREATURE_HH_ 1 #include "main.hh" +#include "connection.hh" +#include "containers.hh" #include "skill.hh" struct TCreature; @@ -13,6 +15,12 @@ struct TCombatEntry{ }; struct TCombat{ + // REGULAR FUNCTIONS + // ========================================================================= + // TODO + + // DATA + // ========================================================================= TCreature *Master; uint32 EarliestAttackTime; uint32 EarliestDefendTime; @@ -36,6 +44,59 @@ struct TCombat{ int LearningPoints; }; +struct TToDoEntry { + ToDoType Code; + union{ + struct{ + uint32 Time; + } Wait; + + struct{ + int x; + int y; + int z; + } Go; + + struct{ + int Direction; + } Rotate; + + struct{ + uint32 Obj; + int x; + int y; + int z; + int Count; + } Move; + + struct{ + uint32 Obj; + uint32 Partner; + } Trade; + + struct{ + uint32 Obj1; + uint32 Obj2; + int Dummy; + } Use; + + struct{ + uint32 Obj; + } Turn; + + struct{ + uint32 Text; // POINTER? Probably a reference from `AddDynamicString`? + int Mode; + uint32 Addressee; + bool CheckSpamming; + } Talk; + + struct{ + int NewState; + } ChangeState; + }; +}; + struct TOutfit{ int OutfitID; union{ -- cgit v1.2.3