Otclient  14/8/2020
TownManager Class Reference

#include <towns.h>

Public Member Functions

 TownManager ()
 
void addTown (const TownPtr &town)
 
void removeTown (uint32 townId)
 
const TownPtrgetTown (uint32 townId)
 
const TownPtrgetTownByName (std::string name)
 
void sort ()
 
TownList getTowns ()
 
void clear ()
 

Protected Member Functions

TownList::iterator findTown (uint32 townId)
 

Detailed Description

Definition at line 49 of file towns.h.

Constructor & Destructor Documentation

◆ TownManager()

TownManager::TownManager ( )

Definition at line 34 of file towns.cpp.

Member Function Documentation

◆ addTown()

void TownManager::addTown ( const TownPtr town)

Definition at line 39 of file towns.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void TownManager::clear ( )
inline

Definition at line 61 of file towns.h.

Here is the caller graph for this function:

◆ findTown()

TownList::iterator TownManager::findTown ( uint32  townId)
protected

Definition at line 70 of file towns.cpp.

Here is the caller graph for this function:

◆ getTown()

const TownPtr & TownManager::getTown ( uint32  townId)

Definition at line 52 of file towns.cpp.

Here is the caller graph for this function:

◆ getTownByName()

const TownPtr & TownManager::getTownByName ( std::string  name)

Definition at line 61 of file towns.cpp.

Here is the caller graph for this function:

◆ getTowns()

TownList TownManager::getTowns ( )
inline

Definition at line 60 of file towns.h.

Here is the caller graph for this function:

◆ removeTown()

void TownManager::removeTown ( uint32  townId)

Definition at line 45 of file towns.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sort()

void TownManager::sort ( )

Definition at line 76 of file towns.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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