game2005/server/gameserver/incubator.h
2021-04-19 11:46:42 +08:00

25 lines
417 B
C++

#pragma once
#include <a8/xtimer.h>
class Human;
class Room;
class Incubator
{
public:
Room* room = nullptr;
void Init();
void UnInit();
void AllocAndroid(Human* target, int num);
void RecycleAndroid(Human* hum);
private:
bool CanSet(Human* hum, Human* exclude_hum);
void AutoAllocAndroid();
private:
std::vector<Human*> hold_humans_;
a8::XTimerAttacher xtimer_attacher_;
};