2024-11-15 09:50:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 3 : x = 200 y = 250
|
|
|
|
|
* 4 : x = 250 y = 300
|
|
|
|
|
* 5 : x = 300 y = 350
|
|
|
|
|
* 6 : x = 350 y = 400
|
|
|
|
|
* 7 : x = 400 y = 450
|
|
|
|
|
* 8 : x = 450 y = 500
|
|
|
|
|
* 9 : x = 500 y = 550
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-19 13:36:11 +01:00
|
|
|
int DefMaxX(int taille){ /* Retourne les coordonées maximale de X par rapport a la taille du tableau selectionner */
|
2024-11-15 09:50:42 +01:00
|
|
|
int maxX = 0, x = 0, max = 200;
|
|
|
|
|
if(taille == 3){
|
|
|
|
|
maxX = 200;
|
|
|
|
|
}
|
|
|
|
|
for(x = 3; x < 10; x++){
|
|
|
|
|
if(taille == x){
|
|
|
|
|
maxX = max;
|
|
|
|
|
}
|
|
|
|
|
max += 50;
|
|
|
|
|
}
|
|
|
|
|
return maxX;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-19 13:36:11 +01:00
|
|
|
int DefMaxY(int taille){ /* Retourne les coordonées maximale de Y par rapport a la taille du tableau selectionner */
|
2024-11-15 09:50:42 +01:00
|
|
|
int maxY = 0, x = 0, max = 250;
|
|
|
|
|
for(x = 3; x < 10; x++){
|
|
|
|
|
if(taille == x){
|
|
|
|
|
maxY = max;
|
|
|
|
|
}
|
|
|
|
|
max += 50;
|
|
|
|
|
}
|
|
|
|
|
return maxY;
|
|
|
|
|
}
|