mirror of
https://github.com/Cpt-Adok/SNAKE.git
synced 2026-03-31 18:31:34 +00:00
ajout d'environnement et modification personnages
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
package personnages;
|
||||
package Personnages;
|
||||
|
||||
public class Characters {
|
||||
protected int[] coordinate;
|
||||
private int[] size; // N
|
||||
public static int size; // N
|
||||
|
||||
public static void setSize(int s) {
|
||||
size = s;
|
||||
}
|
||||
|
||||
protected Characters(int[] size) {
|
||||
this.size = size;
|
||||
public int[] getCoordinate() {
|
||||
return this.coordinate;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
package personnages;
|
||||
package Personnages;
|
||||
|
||||
public class Player extends Characters {
|
||||
public Player(int[] size) {
|
||||
super(size);
|
||||
public Player() {
|
||||
|
||||
}
|
||||
|
||||
public Integer[] changeCoordinate() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package personnages;
|
||||
package Personnages;
|
||||
|
||||
public class Robot extends Characters {
|
||||
public Robot(int[] size) {
|
||||
super(size);
|
||||
public Robot() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user