changement effet et description

This commit is contained in:
marc barbier
2021-01-09 14:24:47 +01:00
parent 051a33ab18
commit ca359dc441
52 changed files with 80 additions and 79 deletions
+2 -1
View File
@@ -11,7 +11,8 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity android:name=".MainActivity" <activity android:name=".MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"> android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@@ -63,7 +63,7 @@ public class Moyen_Age_Charlemagne extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Charlemagne, le Grand"; return "Charlemagne";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_CharlesVII extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Charles VII le Victorieux"; return "Charles VII";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Chretien_De_Troyes extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Chrétien de Troyes, fondateur de l'écriture arthurienne"; return "Chrétien de Troyes";
} }
/** /**
@@ -43,7 +43,7 @@ public class Moyen_Age_Christine extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 0; return 1;
} }
/** /**
@@ -53,7 +53,7 @@ public class Moyen_Age_Christine extends Card {
*/ */
@Override @Override
public int getDefaultHealth() { public int getDefaultHealth() {
return 2; return 1;
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Christine extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Christine de Pizan, première femme de lettre"; return "Christine de Pizan";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_Etienne extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "initiative"; return "vigilance";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Etienne extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Etienne Chevalier, commis du Victorieux"; return "Etienne Chevalier";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Ferré extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Le Grand Ferré, paysan au bras puissant"; return "Le Grand Ferré";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Guillaume extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Guillaume de Nogaret, conseiller du Roi de fer"; return "Guillaume de Nogaret";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_Hugue extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Vos créatures ont la vigilance until EOT"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_Isabelle extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Vos créatures utilise leur point d'endurance à la place de leur attaque jusqu'a la fin du tour"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_Jean extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "vos créatures ont +1/+1 jusqu'a la fin du tour"; return "vos créatures gagne +1/+1 jusqu'a la fin du tour";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Jean_Vienne extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Jean de Vienne, Le « Du Guesclin » de la Mer"; return "Jean de Vienne";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_Jeanne extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "lien de vie, initiative"; return "lien de vie";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Jeanne extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Jeanne d'arc la Pucelle d'Orléans"; return "Jeanne d'arc";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_Louis extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Vos créatures ont +3/+0 et la célérité jusqua la fin du tour"; return "Vos créatures gagne +1/+0 ";
} }
/** /**
@@ -33,7 +33,7 @@ public class Moyen_Age_PhilippeIV extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Inciblable"; return "Invisible";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Philippe_Cacqueray extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Philippe Cacqueray, inventeur du plat en verre"; return "Philippe Cacqueray";
} }
/** /**
@@ -43,7 +43,7 @@ public class Moyen_Age_Pierre_Ermite extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 0; return 1;
} }
/** /**
@@ -53,7 +53,7 @@ public class Moyen_Age_Pierre_Ermite extends Card {
*/ */
@Override @Override
public int getDefaultHealth() { public int getDefaultHealth() {
return 3; return 2;
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Pierre_Ermite extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Pierre l'Ermitte, religieux des croisades"; return "Pierre l'Ermitte";
} }
/** /**
@@ -63,7 +63,7 @@ public class Moyen_Age_Sire_Jean extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Sire Jean de Joinville, biographe de Saint Louis"; return "Sire Jean de Joinville";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Achille extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "quand il arrive sur le champ de bataille toutes tes creatures gagnent +2/+0"; return "quand il arrive sur le champ de bataille toutes tes creatures gagnent +1/+0";
} }
/** /**
@@ -43,7 +43,7 @@ public class Mythes_Achille extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 4; return 5;
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Amazones extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "initiative"; return "vigilance";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Castor_Pollux extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "la creature ciblé a 50% de chance de gagner +2/+0 ou 50% de chance de ce prendre 2 points de degats"; return "";
} }
/** /**
@@ -63,7 +63,7 @@ public class Mythes_Castor_Pollux extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Castor et pollux, fils jumeaux de Léda"; return "Castor et pollux";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Chaos extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return null; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Chiron extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Quand il arrive sur le champ de bataille vous piocher une carte"; return "";
} }
/** /**
@@ -73,7 +73,7 @@ public class Mythes_Chiron extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 3; return 2;
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Dédale extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "donne +1/+1 à une de tes creatures au hasard"; return "donne +1/+1 à toutes tes creatures";
} }
/** /**
@@ -73,7 +73,7 @@ public class Mythes_Dédale extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 1; return 3;
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Hades extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "detruit 2 créatures adverses aleatoirement"; return "";
} }
/** /**
@@ -43,7 +43,7 @@ public class Mythes_Hades extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 7; return 6;
} }
/** /**
@@ -53,7 +53,7 @@ public class Mythes_Hades extends Card {
*/ */
@Override @Override
public int getDefaultHealth() { public int getDefaultHealth() {
return 7; return 6;
} }
/** /**
@@ -73,7 +73,7 @@ public class Mythes_Hades extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 9; return 6;
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Heracles extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "si il est seul sur notre cote du champ de bataille alors il gagne +2/+2"; return "si il est seul sur notre cote du champ de bataille alors il gagne +1/+1";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Hermione extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "cette créature ne peut pas attaquer"; return "";
} }
/** /**
@@ -43,7 +43,7 @@ public class Mythes_Hermione extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 0; return 1;
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Minos extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "la creature ciblé a 50% de chance de gagner +3/+0 ou 50% de gagner +0/+3"; return "toutes vos créatures gagne +1/+1";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Oedipie extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "si votre adversaire n'a pas de creatures sur le champ de bataille quand cette creature arrivent sur le champ de bataille il perd 3pv"; return "mutilation benefique";
} }
/** /**
@@ -23,7 +23,7 @@ public class Mythes_Perséphone extends Card {
@Override @Override
public String getDescription() { public String getDescription() {
return "Redonne 5 points de vie au joueur"; return "";
} }
@Override @Override
@@ -33,7 +33,7 @@ public class Mythes_Perséphone extends Card {
@Override @Override
public int getDefaultHealth() { public int getDefaultHealth() {
return 4; return 6;
} }
@Override @Override
@@ -33,7 +33,7 @@ public class Mythes_Poseidon extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "pioche 2 cartes"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Psyché extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "la créature ciblée ne peut pas attaquer pendant 2 tours"; return "coutre porté";
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Thanatos extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "detruit une creature ennemis au hasard"; return "";
} }
/** /**
@@ -43,7 +43,7 @@ public class Mythes_Thanatos extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 2; return 4;
} }
/** /**
@@ -33,7 +33,7 @@ public class Mythes_Zeus extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "inflige 5 points de degats à la creature ciblée"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Casimir extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Ra: une autre créature que vous controller gagne +4/+4"; return null;
} }
/** /**
@@ -73,7 +73,7 @@ public class Renaissance_Casimir extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 7; return 5;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Constantin extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: Sacrifier une autre de vos créature"; return "";
} }
/** /**
@@ -73,7 +73,7 @@ public class Renaissance_Constantin extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 5; return 6;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Copernic extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: inflige 2 degats à l'adversaire"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Decouverte_Amerique extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "toxique"; return "célérite ,toxique";
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Francois extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "ETB: une créature aléatoire que vous controllez gagne -3/-3"; return "";
} }
/** /**
@@ -73,7 +73,7 @@ public class Renaissance_Francois extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 5; return 7;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Henri_8 extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "ETB: Piocher 2 carte"; return "";
} }
/** /**
@@ -73,7 +73,7 @@ public class Renaissance_Henri_8 extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 6; return 5;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Isabelle extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: inflige 1 dégat a une créature ciblée"; return "";
} }
/** /**
@@ -43,7 +43,7 @@ public class Renaissance_Isabelle extends Card {
*/ */
@Override @Override
public int getDefaultAttack() { public int getDefaultAttack() {
return 1; return 2;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Ivan extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Quand il arrive sur le terrain, il échange ses points de vie et d'attaque de n'importe quelle créature jusqu'à la fin du tour"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Leonard extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "ETB: Déclanche un rale d'agonie aléatoire"; return "";
} }
/** /**
@@ -63,7 +63,7 @@ public class Renaissance_Machiavel extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Machiavel, Philosophe de la Politique"; return "Machiavel";
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Mehmet extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: Prend 2 dégat"; return "";
} }
/** /**
@@ -73,7 +73,7 @@ public class Renaissance_Mehmet extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 1; return 2;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Michel_Ange extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: Vous pouvez jouer une créature de votre main avec un coût de mana de 3 ou moins"; return "";
} }
/** /**
@@ -53,7 +53,7 @@ public class Renaissance_Michel_Ange extends Card {
*/ */
@Override @Override
public int getDefaultHealth() { public int getDefaultHealth() {
return 1; return 3;
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Nobunaga extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: Vous prenez 4 points de degats"; return "";
} }
/** /**
@@ -33,7 +33,7 @@ public class Renaissance_Shakespeare extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: piochez une carte"; return null;
} }
/** /**
@@ -63,7 +63,7 @@ public class Renaissance_Shakespeare extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Shakespeare, Ame d'un Dramaturge"; return "Shakespeare";
} }
/** /**
@@ -34,7 +34,7 @@ public class Renaissance_Skanderberg extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "Défenseur"; return "";
} }
/** /**
@@ -64,7 +64,7 @@ public class Renaissance_Skanderberg extends Card {
*/ */
@Override @Override
public String getName() { public String getName() {
return "Skanderberg, Libérateur de l'Albanie"; return "Skanderberg";
} }
/** /**
@@ -24,7 +24,7 @@ public class Renaissance_Soliman extends Card {
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: Piocher 4 carte, infliger 4 dégats au joueur adverse"; return null;
} }
@Override @Override
@@ -44,7 +44,7 @@ public class Renaissance_Soliman extends Card {
@Override @Override
public int getCost() { public int getCost() {
return 9; return 7;
} }
@Override @Override
@@ -33,7 +33,7 @@ public class Renaissance_Vlad extends Card {
*/ */
@Override @Override
public String getDescription() { public String getDescription() {
return "RA: detruisez 2 créatures adverses aleatoirement"; return "";
} }
/** /**
@@ -73,7 +73,7 @@ public class Renaissance_Vlad extends Card {
*/ */
@Override @Override
public int getCost() { public int getCost() {
return 8; return 5;
} }
/** /**
@@ -121,7 +121,6 @@ public class GameLogicThread extends Thread{
final String host = "2.tcp.ngrok.io";//192.168.43.251tcp://2.tcp.ngrok.io: final String host = "2.tcp.ngrok.io";//192.168.43.251tcp://2.tcp.ngrok.io:
final int port = 17057; final int port = 17057;
//gameativity.finish() n'etait pas utilisable il fermais l'application
//on fait trois essay de connection //on fait trois essay de connection
for(int i = 0 ; i < 3 ; i++) for(int i = 0 ; i < 3 ; i++)
@@ -393,6 +392,7 @@ public class GameLogicThread extends Thread{
} }
private void returnToTheMainActivity() { private void returnToTheMainActivity() {
//gameativity.finish() n'etait pas utilisable il fermais l'application
gameActivity.runOnUiThread(new Runnable() { gameActivity.runOnUiThread(new Runnable() {
@Override @Override
public void run() { public void run() {