master
parent
9d38ac2c61
commit
2998452068
|
|
@ -1,55 +0,0 @@
|
|||
package hunan;
|
||||
|
||||
import com.game.Util;
|
||||
import com.taurus.core.entity.ITArray;
|
||||
import com.taurus.core.entity.ITObject;
|
||||
import com.taurus.core.entity.TObject;
|
||||
import com.taurus.core.plugin.database.DataBase;
|
||||
import com.taurus.core.util.Logger;
|
||||
import com.taurus.core.util.StringUtil;
|
||||
import taurus.client.Message;
|
||||
import taurus.client.TaurusClient;
|
||||
import taurus.util.*;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public class HuNanChangShaNew {
|
||||
|
||||
private static final Logger log = Logger.getLogger(DoTest.class);
|
||||
//湖南红中麻将手牌
|
||||
private List<Integer> changShaCardInhand = new ArrayList<>();
|
||||
|
||||
|
||||
/**
|
||||
* 初始化手牌协议 811
|
||||
* @param command
|
||||
* @param message
|
||||
* @param client
|
||||
* @return
|
||||
*/
|
||||
public String cardInHead(String command, Message message, TaurusClient client) {
|
||||
if (command.equalsIgnoreCase("811")) {
|
||||
log.info("cardInhand changsha new");
|
||||
ITObject param = message.param;
|
||||
if (param == null) {
|
||||
return null;
|
||||
}
|
||||
// {bank_seat=1, laiziCard=0, laiziCard2=0, laiziCard2Before=0, jing=0, laiziCardBefore=0, card_list=[101, 103, 104, 201, 204, 207, 208, 209, 307, 309, 501, 502, 503]}
|
||||
ITArray cardList = param.getTArray("card_list");
|
||||
for (int i = 0; i < cardList.size(); i++) {
|
||||
changShaCardInhand.add(cardList.getInt(i));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void drawCard(String command, Message message,ITObject param) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -957,8 +957,8 @@ public class JiQiRens {
|
|||
//[TCP->822] data:{"tip_list":[{"type":8,"id":1,"opcard":[],"weight":8,"card":0}],"types":[{"type":21,"value":1}]}
|
||||
//板胡Event [TCP->823] data:{"type":8,"seat":1,"data":[{"opcard":[204,204,204,108,108,108],"type":21,"value":1}]}
|
||||
if ("811".equalsIgnoreCase(command)) {//初始化收手牌
|
||||
Map<String, Object> d = null;
|
||||
// huNanChangSha.cardInHead(command, message, client);
|
||||
|
||||
huNanChangSha.cardInHead(command, message, client);
|
||||
} else if ("812".equalsIgnoreCase(command)) {//出牌广播
|
||||
//{"opzicards":[{"opzicards":[],"playerId":101555}],"opmingcards":[{"opmingcards":[],"playerId":101555}],"outcard_map":[{"outcards":[209,205],"playerId":101555},{"outcards":[],"playerId":112233}],"card":205,"opchicards":[{"opchicards":[105,103],"playerId":101555}],"oppengcards":[{"oppengcards":[],"playerId":101555}],"seat":1}
|
||||
ITArray outcard_map = param.getTArray("outcard_map");
|
||||
|
|
@ -1055,10 +1055,10 @@ public class JiQiRens {
|
|||
HuNanChangSha.drawCard(command, message);
|
||||
} else if ("819".equalsIgnoreCase(command)) {
|
||||
//摸牌
|
||||
// huNanChangSha.getCard(command, message);
|
||||
huNanChangSha.getCard(command, message,null,null);
|
||||
} else if ("813".equalsIgnoreCase(command)) {//出牌提示
|
||||
|
||||
// huNanChangSha.outCard(client,playerOutcardsMap,playerchisMap,playerpengsMap,playermingsMap,playerzisMap,null);
|
||||
huNanChangSha.outCard(client,playerOutcardsMap,playerchisMap,playerpengsMap,playermingsMap,playerzisMap);
|
||||
} else if ("814".equalsIgnoreCase(command)) {
|
||||
//放招提示
|
||||
huNanChangSha.actionCard(param, client);
|
||||
|
|
|
|||
Loading…
Reference in New Issue