mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-09 03:58:19 +03:00
31 lines
663 B
C
31 lines
663 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:
|
||
|
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);
|