Otclient  14/8/2020
HouseManager Class Reference

#include <houses.h>

Public Member Functions

 HouseManager ()
 
void addHouse (const HousePtr &house)
 
void removeHouse (uint32 houseId)
 
HousePtr getHouse (uint32 houseId)
 
HousePtr getHouseByName (std::string name)
 
void load (const std::string &fileName)
 
void save (const std::string &fileName)
 
void sort ()
 
void clear ()
 
HouseList getHouseList ()
 
HouseList filterHouses (uint32 townId)
 

Protected Member Functions

HouseList::iterator findHouse (uint32 houseId)
 

Detailed Description

Definition at line 87 of file houses.h.

Constructor & Destructor Documentation

◆ HouseManager()

HouseManager::HouseManager ( )

Definition at line 106 of file houses.cpp.

Member Function Documentation

◆ addHouse()

void HouseManager::addHouse ( const HousePtr house)

Definition at line 110 of file houses.cpp.

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

◆ clear()

void HouseManager::clear ( )
inline

Definition at line 100 of file houses.h.

Here is the caller graph for this function:

◆ filterHouses()

HouseList HouseManager::filterHouses ( uint32  townId)

Definition at line 190 of file houses.cpp.

Here is the caller graph for this function:

◆ findHouse()

HouseList::iterator HouseManager::findHouse ( uint32  houseId)
protected

Definition at line 199 of file houses.cpp.

Here is the caller graph for this function:

◆ getHouse()

HousePtr HouseManager::getHouse ( uint32  houseId)

Definition at line 123 of file houses.cpp.

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

◆ getHouseByName()

HousePtr HouseManager::getHouseByName ( std::string  name)

Definition at line 129 of file houses.cpp.

Here is the caller graph for this function:

◆ getHouseList()

HouseList HouseManager::getHouseList ( )
inline

Definition at line 101 of file houses.h.

Here is the caller graph for this function:

◆ load()

void HouseManager::load ( const std::string &  fileName)

Definition at line 136 of file houses.cpp.

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

◆ removeHouse()

void HouseManager::removeHouse ( uint32  houseId)

Definition at line 116 of file houses.cpp.

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

◆ save()

void HouseManager::save ( const std::string &  fileName)

Definition at line 165 of file houses.cpp.

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

◆ sort()

void HouseManager::sort ( )

Definition at line 205 of file houses.cpp.

Here is the caller graph for this function:

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