Otclient  14/8/2020
ThingsType Class Reference

#include <thingstype.h>

Public Types

enum  Categories {
  Item = 0, Creature, Effect, Missile,
  LastCategory
}
 

Public Member Functions

bool load (const std::string &file)
 
void unload ()
 
bool parseThingType (const FileStreamPtr &fin, ThingType &thingType)
 
ThingTypegetEmptyThingType ()
 
ThingTypegetThingType (uint16 id, Categories category)
 
uint32 getSignature ()
 
bool isLoaded ()
 
uint16 getFirstItemId ()
 
uint16 getMaxItemid ()
 
bool isValidItemId (int id)
 

Detailed Description

Definition at line 31 of file thingstype.h.

Member Enumeration Documentation

◆ Categories

Enumerator
Item 
Creature 
Effect 
Missile 
LastCategory 

Definition at line 35 of file thingstype.h.

Member Function Documentation

◆ getEmptyThingType()

ThingType* ThingsType::getEmptyThingType ( )
inline

Definition at line 48 of file thingstype.h.

◆ getFirstItemId()

uint16 ThingsType::getFirstItemId ( )
inline

Definition at line 54 of file thingstype.h.

Here is the caller graph for this function:

◆ getMaxItemid()

uint16 ThingsType::getMaxItemid ( )
inline

Definition at line 55 of file thingstype.h.

Here is the caller graph for this function:

◆ getSignature()

uint32 ThingsType::getSignature ( )
inline

Definition at line 51 of file thingstype.h.

◆ getThingType()

ThingType* ThingsType::getThingType ( uint16  id,
Categories  category 
)

◆ isLoaded()

bool ThingsType::isLoaded ( )
inline

Definition at line 52 of file thingstype.h.

◆ isValidItemId()

bool ThingsType::isValidItemId ( int  id)
inline

Definition at line 56 of file thingstype.h.

Here is the call graph for this function:

◆ load()

bool ThingsType::load ( const std::string &  file)

◆ parseThingType()

bool ThingsType::parseThingType ( const FileStreamPtr fin,
ThingType thingType 
)

◆ unload()

void ThingsType::unload ( )

The documentation for this class was generated from the following file: