game2006/server/gameserver/new_base_agent.h
aozhiwei 98ff269651 1
2023-10-11 15:34:40 +08:00

29 lines
484 B
C++

#pragma once
#include "precompile.h"
#include "behaviac/behaviac.h"
#include "behaviac_customized_types.h"
class Room;
class BaseAgent : public behaviac::Agent
{
public:
BaseAgent();
virtual ~BaseAgent();
BEHAVIAC_DECLARE_AGENTTYPE(BaseAgent, behaviac::Agent)
void Exec() {}
void SetOwner(Creature* owner) { }
bool IsGameOver();
int GetTickCount();
int RandRange(int min_val, int max_val);
int Rand();
public:
Room* room = nullptr;
};