supression vieux todo + ajout logo
This commit is contained in:
@@ -12,6 +12,9 @@ public abstract class Card {
|
||||
private static Bitmap frameBitmap = null;
|
||||
private DrawableCard drawableCard = null;
|
||||
|
||||
|
||||
private int attack;
|
||||
private int health;
|
||||
/**
|
||||
* cree une carte est lui definit un drawable
|
||||
* @param UID
|
||||
@@ -21,6 +24,26 @@ public abstract class Card {
|
||||
if(!(UID == null || c == null)) {
|
||||
drawableCard = new DrawableCard(this, 0, 0, UID, c);
|
||||
}
|
||||
this.attack=getDefaultAttack();
|
||||
this.health=getDefaultHealth();
|
||||
}
|
||||
|
||||
public int getAttack() {
|
||||
return attack;
|
||||
}
|
||||
|
||||
public int getHealth() {
|
||||
return health;
|
||||
}
|
||||
|
||||
public void setAttack(int attack) {
|
||||
this.attack = attack;
|
||||
drawableCard.updateHpAndAtk(attack,null);
|
||||
}
|
||||
|
||||
public void setHealth(int health) {
|
||||
this.health = health;
|
||||
drawableCard.updateHpAndAtk(null,health);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,13 +110,13 @@ public abstract class Card {
|
||||
* retourne un entier coresspondant a l'attaque de la carte
|
||||
* @return
|
||||
*/
|
||||
public abstract int getAttack();
|
||||
public abstract int getDefaultAttack();
|
||||
|
||||
/**
|
||||
* retourne la santé de la carte
|
||||
* @return
|
||||
*/
|
||||
public abstract int getHealth();
|
||||
public abstract int getDefaultHealth();
|
||||
|
||||
/**
|
||||
* NE PAS TOUCHER CETTE FONCTION SI VOUS N'ÊTES PAS SUR DE CE QUE VOUS FAITES
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Charlemagne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Charlemagne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_CharlesV extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_CharlesV extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_CharlesVII extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_CharlesVII extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Chretien_De_Troyes extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Chretien_De_Troyes extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Christine extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Christine extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Clovis extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Clovis extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 15;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class Moyen_Age_Croisade extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Moyen_Age_Croisade extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Etienne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Etienne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Ferré extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Ferré extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Guerre_100 extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Guerre_100 extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Guillaume extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Guillaume extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Heresie_Cathares extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Heresie_Cathares extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Hugue extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Hugue extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Isabelle extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Isabelle extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Jean extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Jean extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Jean_Vienne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Jean_Vienne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Jeanne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Jeanne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Louis extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Louis extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Malediction_Templier extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Malediction_Templier extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Peste extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Peste extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Philippe extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Philippe extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 8;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_PhilippeIV extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_PhilippeIV extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Philippe_Cacqueray extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Philippe_Cacqueray extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Pierre extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Pierre extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Pierre_Ermite extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Pierre_Ermite extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Pouvoir_Du_Franc extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Pouvoir_Du_Franc extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Prise_Sainte_Terre extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Prise_Sainte_Terre extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Roland extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Roland extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Sire_Jean extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Sire_Jean extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Moyen_Age_Traite_Verdun extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Moyen_Age_Traite_Verdun extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_12_Travaux extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_12_Travaux extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Achille extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Achille extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Amazones extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Amazones extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Castor_Pollux extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Castor_Pollux extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Chant_Sirene extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Chant_Sirene extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Chaos extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Chaos extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Cheval_Troie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Cheval_Troie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Chiron extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Chiron extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Dédale extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Dédale extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Enigme_Sphinx extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Enigme_Sphinx extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Eole extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Eole extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Erinyes extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Erinyes extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Guerre_Sept_Chefs extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Guerre_Sept_Chefs extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Hades extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Hades extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Heracles extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Heracles extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Hermione extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Hermione extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Icar extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Icar extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Kunée extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Kunée extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Minos extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Minos extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Oedipie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Oedipie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -27,12 +27,12 @@ public class Mythes_Perséphone extends Card {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Poseidon extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Poseidon extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Psyché extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Psyché extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Rapt extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Rapt extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Sémélé extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Sémélé extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Thanatos extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Thanatos extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Titanomachie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Titanomachie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Toison extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Toison extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Mythes_Zeus extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Zeus extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Mythes_Zeus_VS_Typhon extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Mythes_Zeus_VS_Typhon extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Casimir extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Casimir extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Charles extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Charles extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Chatherine extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Chatherine extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Chute_Constantinople extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Chute_Constantinople extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Concile_Trente extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Concile_Trente extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Constantin extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Constantin extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Copernic extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Copernic extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Decouverte_Amerique extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Decouverte_Amerique extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Elisabeth extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Elisabeth extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Ferdinand extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Ferdinand extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Fin_Guerre_Cent_Ans extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Fin_Guerre_Cent_Ans extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Francois extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 8;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Francois extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Guerres_Italie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Guerres_Italie extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Henri extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Henri extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Henri_8 extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Henri_8 extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Isabelle extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Isabelle extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Ivan extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Ivan extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Leonard extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Leonard extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Machiavel extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Machiavel extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Mehmet extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Mehmet extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Michel_Ange extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Michel_Ange extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Nobunaga extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Nobunaga extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class Renaissance_Presse_Imprimer extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Renaissance_Presse_Imprimer extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class Renaissance_Rabelais extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Renaissance_Rabelais extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class Renaissance_Reforme extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Renaissance_Reforme extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Shakespeare extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Shakespeare extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ public class Renaissance_Skanderberg extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class Renaissance_Skanderberg extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -28,12 +28,12 @@ public class Renaissance_Soliman extends Card {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Succession_Bourgogne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Succession_Bourgogne extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ public class Renaissance_Vlad extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getAttack() {
|
||||
public int getDefaultAttack() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Renaissance_Vlad extends Card {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getHealth() {
|
||||
public int getDefaultHealth() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ public final class Command {
|
||||
public static final String BATTLE = "battlephase";
|
||||
public static final String SET_ENEMY_HP = "setenemhp";
|
||||
public static final String SET_HP = "sethp";
|
||||
public static final String SET_CARD_HP = "setcardhp";
|
||||
public static final String SET_ADV_CARD_HP = "setadvcardhp";
|
||||
|
||||
//inutilisé
|
||||
public static final String SELECT_CARD = "selectCard";
|
||||
|
||||
@@ -106,6 +106,10 @@ public class GameLogicThread extends Thread{
|
||||
final String host = "2.tcp.ngrok.io";//192.168.43.251tcp://2.tcp.ngrok.io:
|
||||
final int port = 17057;
|
||||
|
||||
//gameativity.finish() n'etait pas utilisable il fermais l'application
|
||||
Intent intent = new Intent(gameActivity,MainActivity.class);
|
||||
//on reset le top et recrée l'activité principale
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
try {
|
||||
Socket client = new Socket(host, port);
|
||||
coms= new Communication(client);
|
||||
@@ -114,10 +118,7 @@ public class GameLogicThread extends Thread{
|
||||
gameActivity.runOnUiThread(new PopupRunable("erreur de comunication avec le serveur",gameActivity));
|
||||
renderer.terminate();
|
||||
|
||||
//gameativity.finish() n'etait pas utilisable il fermais l'application
|
||||
Intent intent = new Intent(gameActivity,MainActivity.class);
|
||||
//on reset le top et recrée l'activité principale
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
|
||||
gameActivity.startActivity(intent);
|
||||
return;
|
||||
}
|
||||
@@ -222,6 +223,8 @@ public class GameLogicThread extends Thread{
|
||||
renderer.addToDraw(new DrawableBitmap(bitmapVictory,0,0,"victory",100F,50F));
|
||||
renderer.updateFrame();
|
||||
cancelled = true;
|
||||
currentThread().sleep(2000);
|
||||
gameActivity.startActivity(intent);
|
||||
break;
|
||||
case Command.LOSE:
|
||||
//on termine la partie
|
||||
@@ -229,6 +232,9 @@ public class GameLogicThread extends Thread{
|
||||
renderer.addToDraw(new DrawableBitmap(bitmapDefeat,0,0,"defeat",100F,50F));
|
||||
renderer.updateFrame();
|
||||
cancelled=true;
|
||||
currentThread().sleep(2000);
|
||||
//gameativity.finish() n'etait pas utilisable il fermais l'application
|
||||
gameActivity.startActivity(intent);
|
||||
break;
|
||||
case Command.PING:
|
||||
coms.send(Command.PONG);
|
||||
@@ -294,6 +300,18 @@ public class GameLogicThread extends Thread{
|
||||
renderer.addToDraw(new DrawableText(" Hp : " + coms.recieve(),85F,80F,"playerHp",13.3F,6.65F,20, 100,30,Color.WHITE));
|
||||
break;
|
||||
|
||||
case Command.SET_CARD_HP :
|
||||
int zonecartecible = coms.recieveInt();
|
||||
board.getPlayerCardsOnBoard()[zonecartecible].setHealth(coms.recieveInt());
|
||||
renderer.updateFrame();
|
||||
break;
|
||||
|
||||
case Command.SET_ADV_CARD_HP:
|
||||
int zonecarteadvcible = coms.recieveInt();
|
||||
board.getAdvCardsOnBoard()[zonecarteadvcible].setHealth(coms.recieveInt());
|
||||
renderer.updateFrame();
|
||||
break;
|
||||
|
||||
case "timeout":
|
||||
//ceci est une erreur et non une commande elle se doit donc de ne rien faire
|
||||
break;
|
||||
@@ -399,7 +417,7 @@ public class GameLogicThread extends Thread{
|
||||
|
||||
public synchronized boolean setOnCardAttackRequest(DrawableCard card, int zoneCible) {
|
||||
if(zoneCible == -1 || zoneCible != 100 && board.getAdvCardsOnBoard()[zoneCible] == null
|
||||
|| card.getCard().getAttack() == 0)
|
||||
|| card.getCard().getDefaultAttack() == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -429,21 +447,6 @@ public class GameLogicThread extends Thread{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* cette fonction est appeller a chaque fin de frame
|
||||
* CETTE FONCTION A UN IMPACT DIRECT SUR LES FPS ELLE SE DOIT D'être OPTIMAL
|
||||
* TOUT CALCUL REDONDANT CE DOIT D'AVOIR ETE PRE FAIT
|
||||
*
|
||||
* TOUT APELLE DE CETTE FONCTION SE DOIT D'ÊTRE PROTEGER PAR isReady()
|
||||
*
|
||||
* /!\ renderer.updateFrame(); va forcer le system a redessiner l'afficher qui ensuite reappelera onFrameDoneRendering() ce qui peut causer si le updateFrame() n'est pas proteger
|
||||
* une utilisation de la batterie massive
|
||||
*/
|
||||
//TODO : supprimer cette fonction si on a rien a en faire
|
||||
public void onFrameDoneRendering()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* retourne vrai sir le moteur est pret a avoir sont evenemnt onFrameDoneRendering d'appeler
|
||||
* @return
|
||||
|
||||
Reference in New Issue
Block a user