diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-28 00:39:29 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-28 00:39:29 -0300 |
| commit | 5505f28c358a50e9d610784303485cc757459162 (patch) | |
| tree | 7756da65dde0d3c125ae71f2ce2afdeb7dc8cd54 /src/objects.hh | |
| parent | 42959207914208438261810757abea43422a28fe (diff) | |
| download | game-5505f28c358a50e9d610784303485cc757459162.tar.gz game-5505f28c358a50e9d610784303485cc757459162.zip | |
finish objects.cc
Diffstat (limited to 'src/objects.hh')
| -rw-r--r-- | src/objects.hh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/objects.hh b/src/objects.hh index eec0565..84801e3 100644 --- a/src/objects.hh +++ b/src/objects.hh @@ -66,17 +66,26 @@ struct ObjectType { }; struct TObjectType { - char *Name; - char *Description; + const char *Name; + const char *Description; uint8 Flags[9]; uint32 Attributes[62]; int AttributeOffsets[18]; }; -const char *GetInstanceAttributeName(int Attribute); +int GetFlagByName(const char *Name); +int GetTypeAttributeByName(const char *Name); int GetInstanceAttributeByName(const char *Name); +const char *GetFlagName(int Flag); +const char *GetTypeAttributeName(int Attribute); +const char *GetInstanceAttributeName(int Attribute); bool ObjectTypeExists(int TypeID); -//void InitObjects(void); -//void ExitObjects(void); +bool ObjectTypeExists(uint8 Group, uint8 Number); +ObjectType GetNewObjectType(uint8 Group, uint8 Number); +void GetOldObjectType(ObjectType Type, uint8 *Group, uint8 *Number); +ObjectType GetSpecialObject(SPECIALMEANING Meaning); +ObjectType GetObjectTypeByName(const char *SearchName, bool Movable); +void InitObjects(void); +void ExitObjects(void); #endif //TIBIA_OBJECTS_HH_ |
