public class PKNonScreenUIControl
extends java.lang.Object
implements android.view.View.OnClickListener
限定符和类型 | 字段和说明 |
---|---|
static int |
PKNONSCREEN_CRITSTATE_IDEl
暴击结束
|
static int |
PKNONSCREEN_CRITSTATE_PALYING
正在暴击
|
static int |
PKNONSCREEN_PKSTATE_BUSY
非联屏游戏直播的状态-正在pk
|
static int |
PKNONSCREEN_PKSTATE_END
非联屏游戏直播的状态-结束
|
static int |
PKNONSCREEN_PKSTATE_FINDING
非联屏游戏直播的状态-寻找
|
static int |
PKNONSCREEN_PKSTATE_IDLE
非联屏游戏直播的状态-空闲
|
构造器和说明 |
---|
PKNonScreenUIControl(android.content.Context mContext,
android.view.ViewGroup mRootView,
boolean mIsHost,
java.lang.String hostid,
android.os.Handler mHandler,
android.view.ViewGroup mRootAnimatorView) |
限定符和类型 | 方法和说明 |
---|---|
void |
destroy() |
void |
endAnimator() |
void |
endCriTime()
结束暴击时刻
|
android.view.ViewGroup |
getAniView() |
int |
getPKNonscreenCritState() |
android.view.ViewGroup |
getRootView() |
void |
onClick(android.view.View v) |
void |
onReceiveEndMsg(PkGameResultBean mPkGameResultBean) |
void |
setAnimatorListener(android.animation.Animator.AnimatorListener animatorListener) |
void |
setCountDownTime(long countDownTime) |
void |
setIsPlayedAnimator(boolean isPlayedAnimator) |
void |
setNonScreenStatusListener(NonScreenStatusListener mStatusListener) |
void |
setNoScreenPkClickCallBack(OnNoScreenPkClickCallBack mNoScreenPkClickCallBack) |
void |
setVisibleStatus(com.app.game.pk.pkgame_nonscreen.PKNonScreenUIControl.Status status) |
void |
startAnimator() |
void |
startAnimator(int[] location) |
void |
startCriTime(long duration,
long startTime,
long currentTime,
java.lang.String critMultiple)
开始暴击时刻
|
void |
startNoScreenPK(java.util.List<PKGameUserData> pkGameUserDataList,
PKGameInfoData pkGameInfoData)
开始pk时:
1.
|
void |
startNoScreenPKBeforeAWhile()
3s后icon切换为倒计时展示
|
void |
startNoScreenPKFinding(boolean isNormal)
开始非连屏pk的匹配,正常情況,存在贡献榜
|
void |
stopNoScreenPKFinding(PkGameResultBean mPkGameResultBean) |
void |
updatePkNonScreenNormalScore(java.util.List<PKGameUserData> data)
更新分数
|
public static final int PKNONSCREEN_PKSTATE_IDLE
public static final int PKNONSCREEN_PKSTATE_FINDING
public static final int PKNONSCREEN_PKSTATE_BUSY
public static final int PKNONSCREEN_PKSTATE_END
public static final int PKNONSCREEN_CRITSTATE_IDEl
public static final int PKNONSCREEN_CRITSTATE_PALYING
public PKNonScreenUIControl(android.content.Context mContext, android.view.ViewGroup mRootView, boolean mIsHost, java.lang.String hostid, android.os.Handler mHandler, android.view.ViewGroup mRootAnimatorView)
public void setNonScreenStatusListener(NonScreenStatusListener mStatusListener)
public void startNoScreenPKFinding(boolean isNormal)
isNormal
- true 正常情況,存在贡献榜
false 非正常情況,不存在贡献榜public void startNoScreenPK(java.util.List<PKGameUserData> pkGameUserDataList, PKGameInfoData pkGameInfoData)
pkGameUserDataList
- pk双方用户信息pkGameInfoData
- pk信息public void startNoScreenPKBeforeAWhile()
public void updatePkNonScreenNormalScore(java.util.List<PKGameUserData> data)
public void startCriTime(long duration, long startTime, long currentTime, java.lang.String critMultiple)
public void endCriTime()
public void stopNoScreenPKFinding(PkGameResultBean mPkGameResultBean)
public void onReceiveEndMsg(PkGameResultBean mPkGameResultBean)
public void setVisibleStatus(com.app.game.pk.pkgame_nonscreen.PKNonScreenUIControl.Status status)
public android.view.ViewGroup getRootView()
public android.view.ViewGroup getAniView()
public void setCountDownTime(long countDownTime)
public void setIsPlayedAnimator(boolean isPlayedAnimator)
public void startAnimator(int[] location)
public void startAnimator()
public void endAnimator()
public int getPKNonscreenCritState()
public void destroy()
public void setAnimatorListener(android.animation.Animator.AnimatorListener animatorListener)
public void setNoScreenPkClickCallBack(OnNoScreenPkClickCallBack mNoScreenPkClickCallBack)
public void onClick(android.view.View v)
onClick
在接口中 android.view.View.OnClickListener