public abstract class TeamPKBaseControl extends BaseVcallControl implements IPkController
限定符和类型 | 类和说明 |
---|---|
protected static class |
TeamPKBaseControl.PKGAME_STATE |
static interface |
TeamPKBaseControl.TeamPKUserChangeCallBack |
BaseVcallControl.GiftVcallHostCallback, BaseVcallControl.IVcallUpLiveCallBack, BaseVcallControl.VCALL_NINE_TYPE
限定符和类型 | 字段和说明 |
---|---|
protected long |
curPKTimeToEnd |
protected java.lang.String |
hostID |
protected android.content.Context |
mContext |
protected com.app.security.util.MemoryDialog |
mDialogQuit |
protected TeamPKBaseControl.PKGAME_STATE |
mPkgameState
当前的状态
|
protected android.os.Handler |
mPKTeamStateHandler |
protected android.view.ViewGroup |
mRootView |
protected java.lang.String |
mTeamPKID |
protected androidx.core.util.Pair<java.lang.String,java.lang.String>[] |
onShowSrcUserIndexArray |
protected long |
PK_TO_PUNISH_TIME_OUT |
protected long |
PUNISH_TO_END_TIME_OUT |
static java.lang.String |
TAG |
protected TeamPKInfoData |
teamPKInfoData |
protected TeamPKUIControl |
teamPKUIControl
PK界面使用的对象
|
protected TeamPKBaseControl.TeamPKUserChangeCallBack |
teamPKUserChangeCallBack
人员变动的callback
|
protected TeamPKUIControl.TeamPKLayoutOnClickCallBack |
teamPKUserInfoOnClickCallBack |
mHostVcallHintManage, mIVcallCallBack, mNineLiveType, mRecordClient, mVcallRootView, mVid, mVideoDataInfo
构造器和说明 |
---|
TeamPKBaseControl() |
限定符和类型 | 方法和说明 |
---|---|
protected int |
cancelTimer() |
void |
destroyVcall() |
void |
endGame(int reason) |
SendGiftTargetInfo |
getCurrentGiftTargetInfo() |
void |
getSelfGiftData(TeamPKInfoData.TeamUserInfo teamUserInfo) |
protected int |
getShowSrcIndexByUid(java.lang.String uid)
根据uid获取当前展示在屏幕的index
|
void |
hintVcallView(boolean isShow) |
void |
initVcall() |
void |
initView(android.view.ViewGroup rootView) |
boolean |
isRunIng() |
void |
onEventMainThread(TeamPKEndContent msgContent)
结束消息的消息
|
void |
onEventMainThread(TeamPKOneUserQuitContent msgContent)
PK有人退出的消息
|
void |
onEventMainThread(TeamPKScoreChangeContent msgContent) |
void |
openVcallTalkPage() |
void |
releaseVcallView(android.view.ViewGroup rootView) |
void |
resetGiftData() |
void |
setHostFollowState(java.lang.String uid,
boolean isFollow) |
void |
setTeamPKUserChangeCallBack(TeamPKBaseControl.TeamPKUserChangeCallBack teamPKUserChangeCallBack) |
void |
showAskEndGameDialog() |
void |
showOrHideGiftDialog(boolean isShow) |
void |
showOrHideLoading(java.lang.String uid,
boolean isShow) |
void |
startGame(TeamPKInfoData teamPKInfoData)
开始游戏
|
protected void |
startTimeCutDown(java.lang.Long totalTime,
int type,
com.app.util.MyCountDownTimer.CountDownLitener countDownLitener) |
protected abstract void |
switchToEnd(android.os.Message message)
切换结束状态
|
protected abstract void |
switchToIDLE(android.os.Message message)
切换准备状态
|
protected abstract void |
switchToMatch(android.os.Message message)
切换到战斗状态
|
protected abstract void |
switchToPunish(android.os.Message message)
切换到惩罚状态
|
protected abstract void |
switchToReady(android.os.Message message)
切换到准备状态
|
protected void |
teamOneUserQuit(java.lang.String uid,
java.lang.String roomID,
java.lang.String streamID,
int index,
boolean isMyTeam,
java.lang.String userName) |
static void |
teamPKLog(java.lang.String msg) |
getmVid, getmVideoDataInfo, linkUser, log, logToFile, onConfigurationChanged, setIVcallCallBack, setmVid, setParentVisible, setRecordClient, setVcallHintManager, switchNineVcallType, upDataHostKCoin, vcallTimeOut
public static java.lang.String TAG
protected final long PK_TO_PUNISH_TIME_OUT
protected final long PUNISH_TO_END_TIME_OUT
protected TeamPKUIControl teamPKUIControl
protected android.content.Context mContext
protected android.view.ViewGroup mRootView
protected java.lang.String mTeamPKID
protected TeamPKInfoData teamPKInfoData
protected androidx.core.util.Pair<java.lang.String,java.lang.String>[] onShowSrcUserIndexArray
protected java.lang.String hostID
protected com.app.security.util.MemoryDialog mDialogQuit
protected TeamPKBaseControl.TeamPKUserChangeCallBack teamPKUserChangeCallBack
protected long curPKTimeToEnd
protected TeamPKBaseControl.PKGAME_STATE mPkgameState
protected android.os.Handler mPKTeamStateHandler
protected TeamPKUIControl.TeamPKLayoutOnClickCallBack teamPKUserInfoOnClickCallBack
public void initView(android.view.ViewGroup rootView)
initView
在类中 BaseVcallControl
public void initVcall()
initVcall
在类中 BaseVcallControl
public void destroyVcall()
destroyVcall
在类中 BaseVcallControl
public void releaseVcallView(android.view.ViewGroup rootView)
releaseVcallView
在类中 BaseVcallControl
public void hintVcallView(boolean isShow)
hintVcallView
在类中 BaseVcallControl
public void openVcallTalkPage()
openVcallTalkPage
在类中 BaseVcallControl
protected abstract void switchToIDLE(android.os.Message message)
protected abstract void switchToReady(android.os.Message message)
protected abstract void switchToMatch(android.os.Message message)
protected abstract void switchToPunish(android.os.Message message)
protected abstract void switchToEnd(android.os.Message message)
public void startGame(TeamPKInfoData teamPKInfoData)
public void setTeamPKUserChangeCallBack(TeamPKBaseControl.TeamPKUserChangeCallBack teamPKUserChangeCallBack)
public boolean isRunIng()
isRunIng
在接口中 IPkController
protected int cancelTimer()
protected void startTimeCutDown(java.lang.Long totalTime, int type, com.app.util.MyCountDownTimer.CountDownLitener countDownLitener)
public void showAskEndGameDialog()
public void endGame(int reason)
public void onEventMainThread(TeamPKOneUserQuitContent msgContent)
msgContent
- protected void teamOneUserQuit(java.lang.String uid, java.lang.String roomID, java.lang.String streamID, int index, boolean isMyTeam, java.lang.String userName)
public void onEventMainThread(TeamPKEndContent msgContent)
msgContent
- 消息体public void onEventMainThread(TeamPKScoreChangeContent msgContent)
protected int getShowSrcIndexByUid(java.lang.String uid)
uid
- 要查询的uidpublic void showOrHideLoading(java.lang.String uid, boolean isShow)
public void setHostFollowState(java.lang.String uid, boolean isFollow)
public void resetGiftData()
public void getSelfGiftData(TeamPKInfoData.TeamUserInfo teamUserInfo)
public SendGiftTargetInfo getCurrentGiftTargetInfo()
public void showOrHideGiftDialog(boolean isShow)
public static void teamPKLog(java.lang.String msg)