mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
31 lines
No EOL
668 B
C++
31 lines
No EOL
668 B
C++
#pragma once
|
|
#include "phd_global.h"
|
|
#include "items.h"
|
|
|
|
struct BaboonRespawnStruct
|
|
{
|
|
int id;
|
|
PHD_3DPOS pos;
|
|
int count;
|
|
int max_count; // used to limit the number of respawn !
|
|
};
|
|
|
|
class BaboonRespawnClass
|
|
{
|
|
private:
|
|
std::vector<BaboonRespawnStruct> baboonRespawnArray;
|
|
public:
|
|
void Free(void);
|
|
void Add(ITEM_INFO* item, int max_count);
|
|
void Remove(int id);
|
|
int GetBaboonFreePlace(void);
|
|
BaboonRespawnStruct* GetBaboonRespawn(int id);
|
|
int GetCount(int id);
|
|
int GetCountMax(int id);
|
|
};
|
|
|
|
|
|
extern BaboonRespawnClass BaboonRespawn;
|
|
|
|
extern void InitialiseBaboon(short itemNumber);
|
|
extern void BaboonControl(short itemNumber); |