This commit is contained in:
aozhiwei 2023-10-13 15:41:00 +08:00
parent 9f2ca00d02
commit 91bed17c6b
2 changed files with 6 additions and 0 deletions

View File

@ -57,3 +57,8 @@ bool RoomAgent::IsGameOver()
{ {
return room_->IsGameOver(); return room_->IsGameOver();
} }
void RoomAgent::SetRoom(Room* room)
{
room_ = room;
}

View File

@ -23,6 +23,7 @@ public:
//HeroAgent* FindHero(int hero_uniid); //HeroAgent* FindHero(int hero_uniid);
bool IsGameOver(); bool IsGameOver();
void SetRoom(Room* room);
private: private:
Room* room_ = nullptr; Room* room_ = nullptr;