Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void buildDeck(Card deck[])
- {
- int index = 0;
- for (int i=1; i <= 19; i++){
- if (i==1){
- for (int j=0; j<3; j++){
- deck[index] = Card("Accident de la route", tattaque, taccident);
- index++;
- }
- } else if (i==2){
- for (int j=0; j<3; j++){
- deck[index] = Card("Panne d'essence", tattaque, tpanne);
- index++;
- }
- } else if (i==3){
- for (int j=0; j<3; j++){
- deck[index] = Card("Crevaison", tattaque, tcrevaison);
- index++;
- }
- } else if (i==4){
- for (int j=0; j<4; j++){
- deck[index] = Card("Limitation de vitesse", tattaque, tlimitation);
- index++;
- }
- } else if (i==5){
- for (int j=0; j<5; j++){
- deck[index] = Card("Feu rouge", tattaque, tfeu);
- index++;
- }
- } else if (i==6){
- for (int j=0; j<6; j++){
- deck[index] = Card("Réparations", tdefence, taccident);
- index++;
- }
- } else if (i==7){
- for (int j=0; j<6; j++){
- deck[index] = Card("Essence", tdefence, tpanne);
- index++;
- }
- } else if (i==8){
- for (int j=0; j<6; j++){
- deck[index] = Card("Roue de secours", tdefence, tcrevaison);
- index++;
- }
- } else if (i==9){
- for (int j=0; j<6; j++){
- deck[index] = Card("Fin de limitation de vitesse", tdefence, tlimitation);
- index++;
- }
- } else if (i==10){
- for (int j=0; j<14; j++){
- deck[index] = Card("Feu vert", tdefence, tfeu);
- index++;
- }
- } else if (i==11){
- for (int j=0; j<1; j++){
- deck[index] = Card("As du volant", tatout, taccident);
- index++;
- }
- } else if (i==12){
- for (int j=0; j<1; j++){
- deck[index] = Card("Camion-citerne", tatout, tpanne);
- index++;
- }
- } else if (i==13){
- for (int j=0; j<1; j++){
- deck[index] = Card("Increvable", tatout, tcrevaison);
- index++;
- }
- } else if (i==14){
- for (int j=0; j<1; j++){
- deck[index] = Card("Prioritaire", tatout, tlimitation);
- index++;
- }
- } else if (i==15){
- for (int j=0; j<10; j++){
- deck[index] = Card("25Kms", tdistance, 25);
- index++;
- }
- } else if (i==16){
- for (int j=0; j<10; j++){
- deck[index] = Card("50Kms", tdistance, 50);
- index++;
- }
- } else if (i==17){
- for (int j=0; j<10; j++){
- deck[index] = Card("75Kms", tdistance, 75);
- index++;
- }
- } else if (i==18){
- for (int j=0; j<12; j++){
- deck[index] = Card("100Kms", tdistance, 100);
- index++;
- }
- } else if (i==19){
- for (int j=0; j<4; j++){
- deck[index] = Card("200Kms", tdistance, 200);
- index++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement