mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-31 04:11:33 +00:00
feat!: refonte du projet, bug niveau initialisation
This commit is contained in:
@@ -2,7 +2,10 @@ package model.car;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
public interface Car {
|
||||
import model.Game.Observer;
|
||||
import model.map.Map;
|
||||
|
||||
public interface Car extends Observer {
|
||||
public String accelerate();
|
||||
|
||||
public String decelerate();
|
||||
@@ -11,13 +14,21 @@ public interface Car {
|
||||
|
||||
public void consumeFuel();
|
||||
|
||||
public void run();
|
||||
|
||||
public void reverse(boolean active);
|
||||
|
||||
public int getPos();
|
||||
|
||||
public Color getColor();
|
||||
|
||||
public String getName();
|
||||
|
||||
public int getPosition();
|
||||
|
||||
public int getScore();
|
||||
|
||||
public int getRound();
|
||||
|
||||
public int getFuel();
|
||||
|
||||
public State getState();
|
||||
|
||||
public void setMap(Map map);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user