public class PKHostGameControl
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
PKHostGameControl.IPKGameCallBack |
限定符和类型 | 字段和说明 |
---|---|
static int |
PK_FROM_FRIEND |
static int |
PK_FROM_RANDOM |
构造器和说明 |
---|
PKHostGameControl(PKHostGameControl.IPKGameCallBack pkGameCB,
java.lang.String roomId,
com.ksy.recordlib.service.core.KsyRecordClient mRecordClient) |
限定符和类型 | 方法和说明 |
---|---|
PKGameUserData |
getOtherUserData() |
PKGameInfoData |
getPkGameInfoData() |
PKGameUserData |
getPkUserInfo(boolean isMe) |
long |
getPlayTime() |
boolean |
isGameStart() |
boolean |
isLoading() |
boolean |
isRandomType() |
boolean |
isZego() |
void |
onInviteMatchFailed()
匹配失败时重置游戏状态,不然这个对手再也匹配不上
|
void |
pkGameMatchSuccess(PKGameMatchResultContent msgContent) |
void |
pkGameSuccess(PKGameSuccessMsgContent msgContent,
boolean isPlayAgain) |
void |
releaseGame(boolean isNeedReport) |
void |
setMark(int sNum,
int yNum) |
void |
setPlayMute(java.lang.String uid,
boolean isMute) |
void |
setSource(int mSource) |
void |
startMatch(int fromType,
int online_st,
PKGameInfoData pkGameInfoData) |
void |
startPlayAgain(PKGameEndMsgContent msgContent) |
public static final int PK_FROM_RANDOM
public static final int PK_FROM_FRIEND
public PKHostGameControl(PKHostGameControl.IPKGameCallBack pkGameCB, java.lang.String roomId, com.ksy.recordlib.service.core.KsyRecordClient mRecordClient)
public boolean isLoading()
public boolean isGameStart()
public void startMatch(int fromType, int online_st, PKGameInfoData pkGameInfoData)
public PKGameInfoData getPkGameInfoData()
public void setSource(int mSource)
public long getPlayTime()
public void releaseGame(boolean isNeedReport)
public boolean isRandomType()
public PKGameUserData getOtherUserData()
public void pkGameMatchSuccess(PKGameMatchResultContent msgContent)
public void pkGameSuccess(PKGameSuccessMsgContent msgContent, boolean isPlayAgain)
public PKGameUserData getPkUserInfo(boolean isMe)
public void setMark(int sNum, int yNum)
public void startPlayAgain(PKGameEndMsgContent msgContent)
public void setPlayMute(java.lang.String uid, boolean isMute)
public boolean isZego()
public void onInviteMatchFailed()