|
|
|
@ -7,9 +7,9 @@ class Pion extends Position {
|
|
|
|
Pion(int id) {
|
|
|
|
Pion(int id) {
|
|
|
|
super(id);
|
|
|
|
super(id);
|
|
|
|
this.bgColor = color(0, 0, 0);
|
|
|
|
this.bgColor = color(0, 0, 0);
|
|
|
|
this.textColor = color(255, 255, 255);
|
|
|
|
this.textColor = color(240, 240, 80);
|
|
|
|
this.posX = floor((displayWidth-margin*2)/nombreEquipes)*id+radius/2+margin;
|
|
|
|
this.posX = floor((displayWidth-margin*2)/nombreEquipes)*id+radius/2+margin;
|
|
|
|
this.posY = displayHeight-28;
|
|
|
|
this.posY = displayHeight-42;
|
|
|
|
this.radius = 30;
|
|
|
|
this.radius = 30;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|