2020-08-20 21:43:48 +00:00
|
|
|
#ifndef _NPCCLASS_HPP
|
|
|
|
#define _NPCCLASS_HPP
|
|
|
|
|
|
|
|
#include "CNStructs.hpp"
|
|
|
|
|
|
|
|
class BaseNPC {
|
|
|
|
public:
|
|
|
|
sNPCAppearanceData appearanceData;
|
|
|
|
|
|
|
|
BaseNPC() {};
|
|
|
|
BaseNPC(int x, int y, int z, int type) {
|
|
|
|
appearanceData.iX = x;
|
|
|
|
appearanceData.iY = y;
|
|
|
|
appearanceData.iZ = z;
|
|
|
|
appearanceData.iNPCType = type;
|
|
|
|
appearanceData.iHP = 400;
|
|
|
|
appearanceData.iAngle = 0;
|
|
|
|
appearanceData.iConditionBitFlag = 0;
|
|
|
|
appearanceData.iBarkerType = 0;
|
|
|
|
|
|
|
|
// hopefully no collisions happen :eyes:
|
2020-08-21 22:14:11 +00:00
|
|
|
appearanceData.iNPC_ID = (int32_t)rand();
|
2020-08-20 21:43:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|