diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-10 03:32:22 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-10 03:32:22 -0300 |
| commit | 699341773dda3ae14a5025b9285bdd05c99bc234 (patch) | |
| tree | a166fcb1fef64f31520a6a26d94a6c83799efce3 /src/info.hh | |
| parent | cd8f3f412c2a5f49ee25aab83079a655b88d6def (diff) | |
| download | game-699341773dda3ae14a5025b9285bdd05c99bc234.tar.gz game-699341773dda3ae14a5025b9285bdd05c99bc234.zip | |
most `info.cc` functions
Diffstat (limited to 'src/info.hh')
| -rw-r--r-- | src/info.hh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/info.hh b/src/info.hh index d3bd625..3cb6399 100644 --- a/src/info.hh +++ b/src/info.hh @@ -12,7 +12,39 @@ enum HouseList: uint8 { DOORLIST = 3, }; +const char *GetLiquidName(int LiquidType); +uint8 GetLiquidColor(int LiquidType); +const char *GetName(Object Obj); +int GetWeight(Object Obj, int Count); +int GetCompleteWeight(Object Obj); +int GetRowWeight(Object Obj); +uint32 GetObjectCreatureID(Object Obj); +int GetObjectBodyPosition(Object Obj); +int GetObjectRNum(Object Obj); +bool ObjectInRange(uint32 CreatureID, Object Obj, int Range); +bool ObjectAccessible(uint32 CreatureID, Object Obj, int Range); +int ObjectDistance(Object Obj1, Object Obj2); +Object GetBodyContainer(uint32 CreatureID, int Position); +Object GetBodyObject(uint32 CreatureID, int Position); +Object GetTopObject(int x, int y, int z, bool Move); +Object GetContainer(uint32 CreatureID, int x, int y, int z); +Object GetObject(uint32 CreatureID, int x, int y, int z, int RNum, ObjectType Type); +Object GetRowObject(Object Obj, ObjectType Type, uint32 Value, bool Recurse); +Object GetInventoryObject(uint32 CreatureID, ObjectType Type, uint32 Value); +int CountObjectsInContainer(Object Con); +int CountObjects(Object Obj); +int CountObjects(Object Obj, ObjectType Type, uint32 Value); +int CountInventoryObjects(uint32 CreatureID, ObjectType Type, uint32 Value); +int CountMoney(Object Obj); +int CountInventoryMoney(uint32 CreatureID); +void CalculateChange(int Amount, int *Gold, int *Platinum, int *Crystal); +int GetHeight(int x, int y, int z); bool JumpPossible(int x, int y, int z, bool AvoidPlayers); +bool FieldPossible(int x, int y, int z, int FieldType); bool SearchFreeField(int *x, int *y, int *z, int Distance, uint16 HouseID, bool Jump); +bool SearchLoginField(int *x, int *y, int *z, int Distance, bool Player); +bool SearchSpawnField(int *x, int *y, int *z, int Distance, bool Player); +void InitInfo(void); +void ExitInfo(void); #endif //TIBIA_INFO_HH_ |
