游戏中用户去掉礼物特效
This commit is contained in:
@@ -621,7 +621,7 @@ public final class AvRoomDataManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取坑上没人且没上锁且最大6个坑位的位置
|
||||
* 当前房间是否正在游戏中
|
||||
*/
|
||||
public boolean isGamePlaying() {
|
||||
if (!isOpenGame()) return false;
|
||||
@@ -638,13 +638,21 @@ public final class AvRoomDataManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取坑上没人且没上锁且最大6个坑位的位置
|
||||
* 是否正在游戏中
|
||||
*/
|
||||
public boolean isGamePlaying(long uid) {
|
||||
return isGamePlaying(AvRoomDataManager.get().getMicPosition(uid));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 是否正在游戏中
|
||||
*/
|
||||
public boolean isGamePlaying(int micPosition) {
|
||||
if (!isOpenGame()) return false;
|
||||
if (mMicQueueMemberMap != null && mMicQueueMemberMap.size() >= 6) {
|
||||
RoomQueueInfo roomQueueInfo = mMicQueueMemberMap.get(micPosition);
|
||||
return roomQueueInfo!=null &&
|
||||
return roomQueueInfo != null &&
|
||||
roomQueueInfo.mChatRoomMember != null &&
|
||||
roomQueueInfo.mChatRoomMember.getGameStatus() == GameStatus.STATUS_PLAYING;
|
||||
}
|
||||
|
Reference in New Issue
Block a user