Byttet pakkenavn.

This commit is contained in:
Steinar Aalstad Lillesund 2020-04-14 15:54:09 +02:00
parent 9f716cc9a3
commit 382960d623
49 changed files with 94 additions and 93 deletions

View File

@ -2,7 +2,7 @@ package inf112.fiasko.roborally;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
public class Main {

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
/**
* This enum represents an action on a programming card

View File

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

View File

@ -1,8 +1,10 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
public enum GameState {
//Indicates that the server is waiting for something
WAITING,
//Gives the game Access to the client and server
BEGINNING_OF_GAME,
//Indicates that the users' input is being run. The board should be shown
RUNNING_PROGRAMS,
//Indicates that

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
public enum ParticleType {
LASER_BEAM_SINGLE (1),

View File

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

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
/**
* This class represents an id for marking specific robots

View File

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

View File

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

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper;
package inf112.fiasko.roborally.gamewrapper;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;

View File

@ -1,14 +1,13 @@
package inf112.fiasko.roborally.game_wrapper;
package inf112.fiasko.roborally.gamewrapper;
import inf112.fiasko.roborally.game_wrapper.screens.BoardActiveScreen;
import inf112.fiasko.roborally.game_wrapper.screens.CardChoiceScreen;
import inf112.fiasko.roborally.game_wrapper.screens.LoadingScreen;
import inf112.fiasko.roborally.game_wrapper.screens.PowerDownScreen;
import inf112.fiasko.roborally.game_wrapper.screens.UsernameScreen;
import inf112.fiasko.roborally.game_wrapper.screens.IPAddressScreen;
import inf112.fiasko.roborally.game_wrapper.screens.LobbyScreen;
import inf112.fiasko.roborally.game_wrapper.screens.StartMenuScreen;
import inf112.fiasko.roborally.gamewrapper.screens.BoardActiveScreen;
import inf112.fiasko.roborally.gamewrapper.screens.LoadingScreen;
import inf112.fiasko.roborally.gamewrapper.screens.PowerDownScreen;
import inf112.fiasko.roborally.gamewrapper.screens.UsernameScreen;
import inf112.fiasko.roborally.gamewrapper.screens.IPAddressScreen;
import inf112.fiasko.roborally.gamewrapper.screens.LobbyScreen;
import inf112.fiasko.roborally.gamewrapper.screens.StartMenuScreen;
/**
* Keeps track of screen instances

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper;
package inf112.fiasko.roborally.gamewrapper;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.BitmapFont;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Screen;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
@ -12,7 +12,7 @@ import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.utils.viewport.ExtendViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.objects.IDrawableGame;
import inf112.fiasko.roborally.objects.IDrawableObject;
import inf112.fiasko.roborally.utility.IOUtil;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
@ -11,7 +11,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.networking.RoboRallyClient;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
@ -9,8 +9,8 @@ import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.game_wrapper.SimpleButton;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.SimpleButton;
import inf112.fiasko.roborally.networking.containers.GameStartInfo;
import inf112.fiasko.roborally.objects.Player;
import inf112.fiasko.roborally.utility.IOUtil;
@ -54,7 +54,7 @@ public class LobbyScreen extends AbstractScreen {
,playerlist,playernames.get(connection)));
}
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getLoadingScreen(roboRallyWrapper));
return true;//her we do stuff
return true;
}
});
stage.setViewport(viewport);

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
@ -9,8 +9,8 @@ import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.game_wrapper.SimpleButton;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.SimpleButton;
/**
* This screen is used for asking players whether they want to power down

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
@ -9,8 +9,8 @@ import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.game_wrapper.SimpleButton;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.SimpleButton;
import inf112.fiasko.roborally.networking.RoboRallyClient;
import inf112.fiasko.roborally.networking.RoboRallyServer;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.game_wrapper.screens;
package inf112.fiasko.roborally.gamewrapper.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
@ -11,7 +11,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.Viewport;
import inf112.fiasko.roborally.game_wrapper.RoboRallyWrapper;
import inf112.fiasko.roborally.gamewrapper.RoboRallyWrapper;
/**
* This screen allows a user to choose their player name

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.elementproperties.Position;
/**
* This class represents a board element and its position

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.GameState;
import inf112.fiasko.roborally.elementproperties.GameState;
import inf112.fiasko.roborally.networking.RoboRallyClient;
import inf112.fiasko.roborally.networking.RoboRallyServer;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.ParticleType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.ParticleType;
/**
* This class represents a particle

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.elementproperties.RobotID;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Action;
import inf112.fiasko.roborally.elementproperties.Action;
/**
* This class represents a programming card

View File

@ -1,8 +1,8 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.Position;
import inf112.fiasko.roborally.elementproperties.RobotID;
/**
* This class represents a robot

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.TileType;
/**
* This class represents a simple tile

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.WallType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.WallType;
/**
* This class represents a wall

View File

@ -1,8 +1,8 @@
package inf112.fiasko.roborally.utility;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.element_properties.WallType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.TileType;
import inf112.fiasko.roborally.elementproperties.WallType;
import inf112.fiasko.roborally.objects.Board;
import inf112.fiasko.roborally.objects.IGrid;
import inf112.fiasko.roborally.objects.Robot;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.utility;
import inf112.fiasko.roborally.element_properties.Action;
import inf112.fiasko.roborally.elementproperties.Action;
import inf112.fiasko.roborally.objects.ProgrammingCard;
import inf112.fiasko.roborally.objects.ProgrammingCardDeck;

View File

@ -1,9 +1,9 @@
package inf112.fiasko.roborally.utility;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.Position;
import inf112.fiasko.roborally.elementproperties.RobotID;
import inf112.fiasko.roborally.objects.Player;
import inf112.fiasko.roborally.objects.IDrawableObject;
import inf112.fiasko.roborally.objects.Tile;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.utility;
import com.esotericsoftware.kryo.Kryo;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.elementproperties.RobotID;
import inf112.fiasko.roborally.networking.containers.ErrorResponse;
import inf112.fiasko.roborally.networking.containers.GameStartInfo;
import inf112.fiasko.roborally.objects.IDeck;

View File

@ -4,11 +4,11 @@ import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.utils.Disposable;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.ParticleType;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.element_properties.WallType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.ParticleType;
import inf112.fiasko.roborally.elementproperties.RobotID;
import inf112.fiasko.roborally.elementproperties.TileType;
import inf112.fiasko.roborally.elementproperties.WallType;
import inf112.fiasko.roborally.objects.Particle;
import inf112.fiasko.roborally.objects.Robot;
import inf112.fiasko.roborally.objects.Tile;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally.element_properties;
package inf112.fiasko.roborally.elementproperties;
import inf112.fiasko.roborally.objects.Wall;
import org.junit.Test;

View File

@ -1,8 +1,8 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.Position;
import inf112.fiasko.roborally.elementproperties.TileType;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

View File

@ -1,10 +1,10 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.element_properties.WallType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.Position;
import inf112.fiasko.roborally.elementproperties.RobotID;
import inf112.fiasko.roborally.elementproperties.TileType;
import inf112.fiasko.roborally.elementproperties.WallType;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.TileType;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.ParticleType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.ParticleType;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Action;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.elementproperties.Action;
import inf112.fiasko.roborally.elementproperties.RobotID;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Action;
import inf112.fiasko.roborally.elementproperties.Action;
import inf112.fiasko.roborally.utility.DeckLoaderUtil;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,6 +1,6 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Action;
import inf112.fiasko.roborally.elementproperties.Action;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;

View File

@ -12,7 +12,7 @@ public class RoboRallyGameTest {
@Before
public void setUp() {
game = new RoboRallyGame(new ArrayList<>(),"Checkmate.txt",false);
game = new RoboRallyGame(new ArrayList<>(),"Checkmate.txt",false, "Player1");
}
@Test

View File

@ -1,9 +1,9 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.elementproperties.Position;
import static org.junit.Assert.assertEquals;
import inf112.fiasko.roborally.element_properties.RobotID;
import inf112.fiasko.roborally.elementproperties.RobotID;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.TileType;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.WallType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.WallType;
import static org.junit.Assert.assertEquals;
import org.junit.Test;

View File

@ -2,8 +2,8 @@ package inf112.fiasko.roborally.utility;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import inf112.fiasko.roborally.GdxTestRunner;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.elementproperties.Direction;
import inf112.fiasko.roborally.elementproperties.TileType;
import inf112.fiasko.roborally.objects.Tile;
import org.junit.Before;
import org.junit.Test;