1
This commit is contained in:
parent
d47c4f2961
commit
853ba8477d
@ -4064,3 +4064,13 @@ bool Room::CanAddObstacle(const a8::Vec2& pos, int obstacle_id)
|
||||
int rad = std::max(thing_meta->i->width(), thing_meta->i->height());
|
||||
return map_service->CanAdd(pos, rad);
|
||||
}
|
||||
|
||||
bool Room::IsDestoryRoom()
|
||||
{
|
||||
return GetMapMeta()->i->map_id() == 1002;
|
||||
}
|
||||
|
||||
bool Room::IsSurvivalRoom()
|
||||
{
|
||||
return GetMapMeta()->i->map_id() == 1003;
|
||||
}
|
||||
|
@ -113,6 +113,8 @@ public:
|
||||
#endif
|
||||
bool IsBattleStarting() { return battle_starting_; };
|
||||
bool IsPveRoom();
|
||||
bool IsDestoryRoom();
|
||||
bool IsSurvivalRoom();
|
||||
|
||||
int GetPlayerNum();
|
||||
int GetHumanNum();
|
||||
|
Loading…
x
Reference in New Issue
Block a user