mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Legger til en klasse for testing av spillinteraksjon
This commit is contained in:
parent
d8acbc661d
commit
2a495e01b8
66
src/test/java/inf112/fiasko/roborally/objects/FakeGame.java
Normal file
66
src/test/java/inf112/fiasko/roborally/objects/FakeGame.java
Normal file
@ -0,0 +1,66 @@
|
||||
package inf112.fiasko.roborally.objects;
|
||||
|
||||
import inf112.fiasko.roborally.elementproperties.GameState;
|
||||
import inf112.fiasko.roborally.networking.containers.PowerDownContainer;
|
||||
import inf112.fiasko.roborally.networking.containers.ProgamsContainer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FakeGame implements InteractableGame {
|
||||
private String winningPlayerName;
|
||||
|
||||
@Override
|
||||
public GameState getGameState() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGameState(GameState gameState) {
|
||||
//Not needed for testing
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getWinningPlayerName() {
|
||||
return winningPlayerName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void receiveAllPrograms(ProgamsContainer programs) throws InterruptedException {
|
||||
//Not needed for testing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void receiveStayInPowerDown(PowerDownContainer powerDowns) {
|
||||
//Not needed for testing
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProgrammingCardDeck getPlayerHand() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPlayerHand(ProgrammingCardDeck playerHand) {
|
||||
//Not needed for testing
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getProgramSize() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ProgrammingCard> getProgram() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setProgram(List<ProgrammingCard> program) {
|
||||
//Not needed for testing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setWinningPlayerName(String winningPlayerName) {
|
||||
this.winningPlayerName = winningPlayerName;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user