Legger til enum Action og bytter navn på abstractions pakken

Bytter pakkenavn fra abstractions til element_properties
This commit is contained in:
Kristian Knarvik 2020-02-19 11:15:23 +01:00
parent 81553f67d9
commit bec414e676
13 changed files with 28 additions and 14 deletions

View File

@ -0,0 +1,14 @@
package inf112.fiasko.roborally.element_properties;
/**
* This enum represents an action on a programming card
*/
public enum Action {
ROTATE_RIGHT,
ROTATE_LEFT,
U_TURN,
MOVE_1,
MOVE_2,
MOVE_3,
BACK_UP
}

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.abstractions;
package inf112.fiasko.roborally.element_properties;
/**
* This enum represents all possible directions for an element on the board

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.abstractions;
package inf112.fiasko.roborally.element_properties;
/**
* This enum represents a drawable texture

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game;
package inf112.fiasko.roborally.element_properties;
/**
* This class represent a position on the board

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.abstractions;
package inf112.fiasko.roborally.element_properties;
/**
* This enum represents all possible tile types

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.abstractions;
package inf112.fiasko.roborally.element_properties;
/**
* This enum represents all possible wall types

View File

@ -1,12 +1,12 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.abstractions.GameTexture;
import inf112.fiasko.roborally.element_properties.GameTexture;
/**
* This class represents an object that can be drawn using libgdx
*/
public class DrawableObject implements IDrawableObject {
private GameTexture texture;
private final GameTexture texture;
private int xPos;
private int yPos;
private int width = 64;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.abstractions.GameTexture;
import inf112.fiasko.roborally.element_properties.GameTexture;
/**
* This interface describes an object drawable using libgdx

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally;
import inf112.fiasko.roborally.abstractions.Direction;
import inf112.fiasko.roborally.element_properties.Direction;
import org.junit.Test;
import java.util.ArrayList;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally;
import inf112.fiasko.roborally.objects.DrawableObject;
import inf112.fiasko.roborally.abstractions.GameTexture;
import inf112.fiasko.roborally.element_properties.GameTexture;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally;
import inf112.fiasko.roborally.game.Position;
import inf112.fiasko.roborally.element_properties.Position;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally;
import inf112.fiasko.roborally.abstractions.TileType;
import inf112.fiasko.roborally.element_properties.TileType;
import org.junit.Test;
import java.util.ArrayList;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally;
import inf112.fiasko.roborally.abstractions.TileType;
import inf112.fiasko.roborally.abstractions.WallType;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.element_properties.WallType;
import org.junit.Test;
import java.util.ArrayList;