public class LiveGameStateManager
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
GAME_BASE_CHECK_STATUS_BROADCASTER_LEVEL_LOW |
static int |
GAME_BASE_CHECK_STATUS_NORMAL
请求游戏准入条件接口会返回的状态值
|
static int |
GAME_BASE_CHECK_STATUS_NOT_OPEN_AREA |
static int |
GAME_BASE_CHECK_STATUS_USER_LEVEL_LOW |
static int |
GAME_START_STATUS_BROADCASTER_LEVEL_LOW |
static int |
GAME_START_STATUS_DEFAULT_FOOD_UNCOMPLETE |
static int |
GAME_START_STATUS_NORMAL
请求游戏开始接口会返回的状态值
|
static int |
GAME_START_STATUS_NOT_LIVING |
static int |
GAME_START_STATUS_NOT_OPEN_AREA |
static int |
GAME_START_STATUS_PAY |
static int |
GAME_START_STATUS_PLAYING |
static int |
GAME_START_STATUS_PLAYING_OTHER |
static int |
GAME_START_STATUS_SDK |
static int |
GAME_START_STATUS_UNION_OR_VCALLING |
static int |
GAME_START_STATUS_USER_LEVEL_LOW |
static int |
GAME_START_STATUS_VIDEO_INVALID |
static int |
GAME_STATUS_DEFAULT |
java.util.HashMap<LiveGame,LiveGameState> |
mDefaultGameMap |
java.util.HashMap<LiveGame,LiveGameState> |
mLiveGameMap |
构造器和说明 |
---|
LiveGameStateManager() |
限定符和类型 | 方法和说明 |
---|---|
LiveGameState |
getGameState(LiveGame game) |
java.util.List<LiveGameState> |
getLiveGameStateList()
根据map中value值的index字段,返回按照index值排序好的list
index不能重复,否则重复的值只会取一个
|
LiveGame |
getPlayingGame()
获取当前正在玩的游戏
|
boolean |
isPlayingEatGame() |
void |
recordGameOver(LiveGame game) |
void |
recordGameStart(LiveGame game) |
void |
setDownLoading(LiveGame game,
float f)
设置下载状态
|
void |
setRedPoint(LiveGame game,
boolean b)
设置红点
|
void |
updateGameState(LiveGameState newState)
设置游戏状态和排序
更新本地记录的游戏状态
|
java.lang.String |
updateGameStateList(java.util.List<LiveGameState> gameList)
设置游戏状态和排序
更新本地记录的游戏状态
|
public static final int GAME_STATUS_DEFAULT
public static final int GAME_START_STATUS_NORMAL
public static final int GAME_START_STATUS_PLAYING
public static final int GAME_START_STATUS_PLAYING_OTHER
public static final int GAME_START_STATUS_BROADCASTER_LEVEL_LOW
public static final int GAME_START_STATUS_USER_LEVEL_LOW
public static final int GAME_START_STATUS_UNION_OR_VCALLING
public static final int GAME_START_STATUS_DEFAULT_FOOD_UNCOMPLETE
public static final int GAME_START_STATUS_NOT_LIVING
public static final int GAME_START_STATUS_NOT_OPEN_AREA
public static final int GAME_START_STATUS_SDK
public static final int GAME_START_STATUS_VIDEO_INVALID
public static final int GAME_START_STATUS_PAY
public static final int GAME_BASE_CHECK_STATUS_NORMAL
public static final int GAME_BASE_CHECK_STATUS_BROADCASTER_LEVEL_LOW
public static final int GAME_BASE_CHECK_STATUS_USER_LEVEL_LOW
public static final int GAME_BASE_CHECK_STATUS_NOT_OPEN_AREA
public java.util.HashMap<LiveGame,LiveGameState> mDefaultGameMap
public java.util.HashMap<LiveGame,LiveGameState> mLiveGameMap
public void recordGameStart(LiveGame game)
public void recordGameOver(LiveGame game)
public LiveGame getPlayingGame()
public LiveGameState getGameState(LiveGame game)
public boolean isPlayingEatGame()
public java.util.List<LiveGameState> getLiveGameStateList()
public void setRedPoint(LiveGame game, boolean b)
game
- b
- public void setDownLoading(LiveGame game, float f)
game
- f
- public void updateGameState(LiveGameState newState)
newState
- public java.lang.String updateGameStateList(java.util.List<LiveGameState> gameList)
gameList
-