mirror of
https://github.com/Cpt-Adok/SNAKE.git
synced 2026-01-25 11:34:06 +00:00
correction
This commit is contained in:
@@ -5,7 +5,9 @@ package Item;
|
||||
*/
|
||||
public enum Items {
|
||||
Mur("mur", Effects.IMPASSABLE),
|
||||
|
||||
Body("corps", Effects.IMPASSABLE),
|
||||
Head("tete", Effects.IMPASSABLE),
|
||||
|
||||
ABRICOT("fraise", Effects.INVINCIBILITY),
|
||||
ORANGE("orange", Effects.POWER),
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
import Item.Items;
|
||||
import personnages.*;
|
||||
|
||||
|
||||
@@ -3,11 +3,14 @@ package personnages;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import Item.Effects;
|
||||
import Item.Items;
|
||||
|
||||
public class Personnage {
|
||||
private int size;
|
||||
protected int[] coordinate;
|
||||
|
||||
public Items item;
|
||||
|
||||
private ArrayList<Effects> effectsList;
|
||||
|
||||
protected Personnage(int size, int[] coordinate) {
|
||||
@@ -15,6 +18,10 @@ public class Personnage {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int[] getCoordinate() {
|
||||
return coordinate;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user