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