mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-28 19:13:41 +00:00
feat(Circuit): rework complet de Circuit
This commit is contained in:
25
src/Circuit.java
Normal file
25
src/Circuit.java
Normal file
@@ -0,0 +1,25 @@
|
||||
public class Circuit {
|
||||
private final CircuitCell type;
|
||||
private int value;
|
||||
|
||||
public Circuit(CircuitCell type)
|
||||
{
|
||||
this.type = type;
|
||||
this.value = type.ordinal();
|
||||
}
|
||||
|
||||
public Circuit(CircuitCell type, int value)
|
||||
{
|
||||
this.type = type;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public Circuit setValue(int value)
|
||||
{
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CircuitCell getType() { return type; }
|
||||
public int getValue() { return value; }
|
||||
}
|
||||
Reference in New Issue
Block a user