public class PKGameUIControl
extends java.lang.Object
构造器和说明 |
---|
PKGameUIControl(boolean isHost,
android.view.View mRootView,
android.content.Context context,
android.os.Handler handler,
android.view.View.OnClickListener onClickListener) |
限定符和类型 | 方法和说明 |
---|---|
void |
addSendProGift(int progress,
int max) |
void |
audienceStartGame(java.util.List<PKGameUserData> pkGameUserData,
java.lang.String hostid,
boolean isPK,
int screenWidth,
int screenHeight,
boolean isVcallPlay) |
boolean |
canShowStrikeTime()
是否符合展示暴击时刻的条件
双方积分都要大于0
|
void |
destroyView() |
void |
dismissFollowLayout() |
void |
doPKStartAnim()
开始PK对战动画
|
android.widget.ImageView |
getVcallPreviewImg() |
android.view.View |
getVcallRootView() |
int |
getViewBottom() |
void |
hideAllLoading() |
void |
hideGift() |
void |
hideOrShowInviteView(boolean isShow) |
void |
hideSendGiftFra() |
void |
hostStartGame(PKGameUserData pkData,
java.lang.String pkTitle,
int winCount) |
void |
initView() |
boolean |
isAgainButtonEnable() |
boolean |
isBattling() |
void |
onGiftGuard(PKGameSendUserInfo userInfo,
boolean isFirst)
送礼物用户头像徽章显示
只有第一次送礼用户和PK阶段结束时最多送礼用户展示
|
void |
onPKBattleEnd() |
void |
onPKBattleStart() |
void |
onPkPunishEnd()
惩罚倒计时结束
|
void |
onPkPunishStart()
开始惩罚倒计时阶段
|
void |
onReceivePKRidiculeMsgContent(PKRidiculeMsgContent message) |
void |
onRenderChanged(float ratio)
渲染层回调,通知渲染窗口尺寸发生变化
|
void |
onSuperScreenEnd() |
void |
onSuperScreenStart() |
void |
resetAudienceView(java.util.List<PKGameUserData> pkGameUserData,
java.lang.String hostid,
boolean isVcallPlayer,
int screenWidth,
int screenHeight,
int sNum,
int yNum) |
void |
runWinDiamondAnim(int diamond) |
void |
setAgainButtonEnable(boolean enable)
更新再来一局按钮状态
|
void |
setAudienceGuide(int sNum,
int yNum,
boolean isPk)
判断第一次送礼button是否消失
|
void |
setCutDownString(java.lang.String typeString,
boolean isStrike) |
void |
setIsWin(boolean win)
设置失败或胜利展示的图标
|
void |
setMark(int sNum,
int yNum) |
void |
setMarkRel(int sNum,
int yNum) |
void |
setOtherHostMute(boolean otherMute) |
void |
setPKAdapter(PKHelper pkHelper) |
void |
setPKId(java.lang.String PKId) |
void |
setPlayCutDownText(long mTime,
boolean isStrike) |
void |
setResult(boolean SIsWin,
boolean YIsWin,
int wincount,
int otherWinCount) |
void |
setTopList(java.util.ArrayList<TopUserInfo> topList,
boolean isMySelf) |
void |
showIncrAnim(int sinc,
int yinc) |
void |
showOrHideGiftFragment(boolean isShowGiftDialog) |
void |
showOrHideLoading(boolean isOhter,
boolean isShow) |
void |
showOrHideMuteIcon(boolean isShow) |
void |
showPKLoading(boolean show)
新版本再来一局开始前的过度动画
|
void |
showRank(PKGameHostRankContent msgContent,
java.lang.String hostId) |
void |
showSendGiftFra(int max,
int cur,
PKPunishGift gift) |
void |
startCountDown() |
void |
startStrikeGame(long cutTime,
java.lang.String strikeNum) |
void |
stopStrikeGame() |
void |
vcallPlayerToIJKAudienceView(java.util.List<PKGameUserData> pkGameUserData,
java.lang.String hostid,
int screenWidth,
int screenHeight) |
public PKGameUIControl(boolean isHost, android.view.View mRootView, android.content.Context context, android.os.Handler handler, android.view.View.OnClickListener onClickListener)
public void setPKAdapter(PKHelper pkHelper)
public void initView()
public void showOrHideGiftFragment(boolean isShowGiftDialog)
public void dismissFollowLayout()
public void hostStartGame(PKGameUserData pkData, java.lang.String pkTitle, int winCount)
public void setPKId(java.lang.String PKId)
public void audienceStartGame(java.util.List<PKGameUserData> pkGameUserData, java.lang.String hostid, boolean isPK, int screenWidth, int screenHeight, boolean isVcallPlay)
public void destroyView()
public void setTopList(java.util.ArrayList<TopUserInfo> topList, boolean isMySelf)
public void setCutDownString(java.lang.String typeString, boolean isStrike)
public void setPlayCutDownText(long mTime, boolean isStrike)
public void showIncrAnim(int sinc, int yinc)
public void setMark(int sNum, int yNum)
public void setMarkRel(int sNum, int yNum)
public void setAudienceGuide(int sNum, int yNum, boolean isPk)
sNum
- 自身积分yNum
- 对手积分isPk
- 是否正在PK阶段public void showOrHideMuteIcon(boolean isShow)
public void setOtherHostMute(boolean otherMute)
public void setResult(boolean SIsWin, boolean YIsWin, int wincount, int otherWinCount)
public void startCountDown()
public void runWinDiamondAnim(int diamond)
public void showRank(PKGameHostRankContent msgContent, java.lang.String hostId)
public void hideGift()
public void startStrikeGame(long cutTime, java.lang.String strikeNum)
public void stopStrikeGame()
public void showSendGiftFra(int max, int cur, PKPunishGift gift)
public void hideSendGiftFra()
public void addSendProGift(int progress, int max)
public void vcallPlayerToIJKAudienceView(java.util.List<PKGameUserData> pkGameUserData, java.lang.String hostid, int screenWidth, int screenHeight)
public int getViewBottom()
public android.widget.ImageView getVcallPreviewImg()
public android.view.View getVcallRootView()
public void hideOrShowInviteView(boolean isShow)
public void showOrHideLoading(boolean isOhter, boolean isShow)
public void hideAllLoading()
public void resetAudienceView(java.util.List<PKGameUserData> pkGameUserData, java.lang.String hostid, boolean isVcallPlayer, int screenWidth, int screenHeight, int sNum, int yNum)
public void onPkPunishStart()
public void setIsWin(boolean win)
win
- public void onPkPunishEnd()
public void setAgainButtonEnable(boolean enable)
enable
- public boolean isAgainButtonEnable()
public void doPKStartAnim()
public void showPKLoading(boolean show)
show
- public void onSuperScreenStart()
public void onSuperScreenEnd()
public void onRenderChanged(float ratio)
ratio
- 屏幕左右比例public boolean canShowStrikeTime()
public void onPKBattleStart()
public void onPKBattleEnd()
public void onGiftGuard(PKGameSendUserInfo userInfo, boolean isFirst)
userInfo
- isFirst
- 是否第一次,true 是 反之为最佳送礼public boolean isBattling()
public void onReceivePKRidiculeMsgContent(PKRidiculeMsgContent message)