mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-04-21 19:16:25 +02:00
Oppdaterer IDrawableObject og IDrawableGame og implementerende klasser Legger til en utility klasse for input og output Legger til manglende metoder i TextureConverterUtil Oppdaterer noen tester med nye datatyper
53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
package inf112.fiasko.roborally.game;
|
|
|
|
import inf112.fiasko.roborally.objects.Robot;
|
|
import inf112.fiasko.roborally.objects.Tile;
|
|
import inf112.fiasko.roborally.objects.Wall;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* This interface describes a game drawable using libgdx
|
|
*/
|
|
public interface IDrawableGame {
|
|
|
|
/**
|
|
* Gets the number of tiles in the x direction
|
|
* @return A positive integer
|
|
*/
|
|
int getWidth();
|
|
|
|
/**
|
|
* Gets the number of tiles in the y direction
|
|
* @return A positive integer
|
|
*/
|
|
int getHeight();
|
|
|
|
/**
|
|
* Gets a list of all the tiles to be drawn
|
|
*
|
|
* Should return a list readable from top-left to top-right and so on. In other words, the first getWidth() tiles
|
|
* should be drawn on the top row from left to right.
|
|
*
|
|
* @return A list of tiles
|
|
*/
|
|
List<Tile> getTilesToDraw();
|
|
|
|
/**
|
|
* Gets a list of all the walls to be drawn
|
|
*
|
|
* Should return a list readable from top-left to top-right and so on. In other words, the first getWidth() walls
|
|
* should be drawn on the top row from left to right.
|
|
*
|
|
* @return A list of walls
|
|
*/
|
|
List<Wall> getWallsToDraw();
|
|
|
|
/**
|
|
* Gets a list of all robots to draw
|
|
* @return A list of all robots to draw
|
|
*/
|
|
List<Robot> getRobotsToDraw();
|
|
|
|
}
|