master
parent
82e32f285d
commit
90cc9fe340
|
|
@ -9,7 +9,6 @@ import com.game.Global;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import extend.mj.uitl.WinCard;
|
import extend.mj.uitl.WinCard;
|
||||||
|
|
||||||
|
|
||||||
public class RoomCard {
|
public class RoomCard {
|
||||||
public List<Integer> cardList;
|
public List<Integer> cardList;
|
||||||
EXRoom room;
|
EXRoom room;
|
||||||
|
|
@ -28,16 +27,21 @@ public class RoomCard {
|
||||||
this.shuffle();
|
this.shuffle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void initCard() {
|
private void initCard() {
|
||||||
|
boolean queyimen = false;
|
||||||
|
if (room.config.getBoolean(Config.ROOM_CONFIG_QUEYIMEN) != null) {
|
||||||
|
queyimen = room.config.getBoolean(Config.ROOM_CONFIG_QUEYIMEN);
|
||||||
|
}
|
||||||
|
|
||||||
for (int index = 1; index <= 9; index++) {
|
for (int index = 1; index <= 9; index++) {
|
||||||
for (int index2 = 0; index2 < 4; index2++) {
|
for (int index2 = 0; index2 < 4; index2++) {
|
||||||
this.cardList.add(100 + index);
|
this.cardList.add(100 + index);
|
||||||
this.cardList.add(200 + index);
|
this.cardList.add(200 + index);
|
||||||
|
if (!queyimen) {
|
||||||
this.cardList.add(300 + index);
|
this.cardList.add(300 + index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
boolean laizi = room.config.getBoolean(Config.ROOM_CONFIG_HONGZHONG);
|
boolean laizi = room.config.getBoolean(Config.ROOM_CONFIG_HONGZHONG);
|
||||||
boolean laizi8 = room.config.getBoolean(Config.ROOM_CONFIG_HONGZHONG8);
|
boolean laizi8 = room.config.getBoolean(Config.ROOM_CONFIG_HONGZHONG8);
|
||||||
|
|
@ -67,8 +71,7 @@ public class RoomCard {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void shuffle() {
|
private void shuffle() {
|
||||||
for(int i = 0; i < 100; i++)
|
for (int i = 0; i < 100; i++) {
|
||||||
{
|
|
||||||
Math.random();
|
Math.random();
|
||||||
Collections.shuffle(this.cardList);
|
Collections.shuffle(this.cardList);
|
||||||
}
|
}
|
||||||
|
|
@ -141,7 +144,6 @@ public class RoomCard {
|
||||||
public List<Integer> deal(boolean isw) {
|
public List<Integer> deal(boolean isw) {
|
||||||
List<Integer> dealCards = new ArrayList<Integer>();
|
List<Integer> dealCards = new ArrayList<Integer>();
|
||||||
|
|
||||||
|
|
||||||
if (isw) {
|
if (isw) {
|
||||||
|
|
||||||
boolean laizi8 = room.config.getBoolean(Config.ROOM_CONFIG_HONGZHONG8);
|
boolean laizi8 = room.config.getBoolean(Config.ROOM_CONFIG_HONGZHONG8);
|
||||||
|
|
@ -182,8 +184,6 @@ public class RoomCard {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// dealCards.add(101);
|
// dealCards.add(101);
|
||||||
// dealCards.add(101);
|
// dealCards.add(101);
|
||||||
// dealCards.add(101);
|
// dealCards.add(101);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue