refactor(Core/Misc): headers cleanup (#9259)

This commit is contained in:
Kargatum
2021-11-22 17:24:39 +07:00
committed by GitHub
parent 699d4835df
commit f62664c987
775 changed files with 1294 additions and 1165 deletions

View File

@@ -15,11 +15,20 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class PlayerTaxi
#ifndef __PLAYER_TAXI_H__
#define __PLAYER_TAXI_H__
#include "DBCStructure.h"
#include <vector>
class ByteBuffer;
class AC_GAME_API PlayerTaxi
{
public:
PlayerTaxi();
~PlayerTaxi() = default;
// Nodes
void InitTaxiNodesForLevel(uint32 race, uint32 chrClass, uint8 level);
void LoadTaxiMask(std::string const& data);
@@ -30,6 +39,7 @@ public:
uint32 submask = 1 << ((nodeidx - 1) % 32);
return (m_taximask[field] & submask) == submask;
}
bool SetTaximaskNode(uint32 nodeidx)
{
uint8 field = uint8((nodeidx - 1) / 32);
@@ -42,6 +52,7 @@ public:
else
return false;
}
void AppendTaximaskTo(ByteBuffer& data, bool all);
// Destinations
@@ -72,3 +83,5 @@ private:
std::vector<uint32> m_TaxiDestinations;
uint32 _taxiSegment;
};
#endif