2020-08-25 17:42:56 +00:00
|
|
|
#pragma once
|
2020-08-20 21:43:48 +00:00
|
|
|
|
|
|
|
#include "CNStructs.hpp"
|
2020-09-25 00:00:26 +00:00
|
|
|
#include "ChunkManager.hpp"
|
2020-08-20 21:43:48 +00:00
|
|
|
|
|
|
|
class BaseNPC {
|
|
|
|
public:
|
|
|
|
sNPCAppearanceData appearanceData;
|
2020-09-23 03:41:43 +00:00
|
|
|
NPCClass npcClass;
|
2020-10-01 01:44:37 +00:00
|
|
|
int instanceID;
|
|
|
|
std::tuple<int, int, int> chunkPos;
|
2020-09-25 00:00:26 +00:00
|
|
|
std::vector<Chunk*> currentChunks;
|
2020-08-20 21:43:48 +00:00
|
|
|
|
|
|
|
BaseNPC() {};
|
2020-10-01 01:44:37 +00:00
|
|
|
BaseNPC(int x, int y, int z, int iID, int type, int id) {
|
2020-08-20 21:43:48 +00:00
|
|
|
appearanceData.iX = x;
|
|
|
|
appearanceData.iY = y;
|
|
|
|
appearanceData.iZ = z;
|
|
|
|
appearanceData.iNPCType = type;
|
|
|
|
appearanceData.iHP = 400;
|
|
|
|
appearanceData.iAngle = 0;
|
|
|
|
appearanceData.iConditionBitFlag = 0;
|
|
|
|
appearanceData.iBarkerType = 0;
|
2020-09-24 22:36:25 +00:00
|
|
|
appearanceData.iNPC_ID = id;
|
2020-09-25 00:00:26 +00:00
|
|
|
|
2020-10-01 01:44:37 +00:00
|
|
|
instanceID = iID;
|
|
|
|
|
|
|
|
chunkPos = std::make_tuple(0, 0, instanceID);
|
2020-08-20 21:43:48 +00:00
|
|
|
};
|
2020-10-01 01:44:37 +00:00
|
|
|
BaseNPC(int x, int y, int z, int iID, int type, int id, NPCClass classType) : BaseNPC(x, y, z, iID, type, id) {
|
2020-09-23 03:41:43 +00:00
|
|
|
npcClass = classType;
|
|
|
|
}
|
2020-08-25 17:42:56 +00:00
|
|
|
};
|