Restructuring
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package se.urmo.game;
|
||||
|
||||
import se.urmo.game.main.Game;
|
||||
|
||||
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
|
||||
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
|
||||
public class Main {
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
package se.urmo.game;
|
||||
package se.urmo.game.collision;
|
||||
|
||||
|
||||
import se.urmo.game.util.Direction;
|
||||
import se.urmo.game.map.GameMap;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@ -1,5 +1,10 @@
|
||||
package se.urmo.game;
|
||||
package se.urmo.game.entities;
|
||||
|
||||
import se.urmo.game.collision.CollisionChecker;
|
||||
import se.urmo.game.util.Direction;
|
||||
import se.urmo.game.main.Game;
|
||||
import se.urmo.game.main.GamePanel;
|
||||
import se.urmo.game.map.GameMap;
|
||||
import se.urmo.game.util.LoadSave;
|
||||
import se.urmo.game.util.MiscUtil;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package se.urmo.game;
|
||||
package se.urmo.game.main;
|
||||
|
||||
import se.urmo.game.state.GameStateManager;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package se.urmo.game;
|
||||
package se.urmo.game.main;
|
||||
|
||||
import se.urmo.game.input.KeyHandler;
|
||||
import se.urmo.game.state.GameStateManager;
|
||||
@ -1,6 +1,6 @@
|
||||
package se.urmo.game;
|
||||
package se.urmo.game.map;
|
||||
|
||||
import se.urmo.game.map.MapTile;
|
||||
import se.urmo.game.main.GamePanel;
|
||||
import se.urmo.game.util.LoadSave;
|
||||
|
||||
import java.awt.*;
|
||||
@ -1,6 +1,6 @@
|
||||
package se.urmo.game.state;
|
||||
|
||||
import se.urmo.game.Game;
|
||||
import se.urmo.game.main.Game;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.HashMap;
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
package se.urmo.game.state;
|
||||
|
||||
import se.urmo.game.*;
|
||||
import se.urmo.game.collision.CollisionChecker;
|
||||
import se.urmo.game.entities.PacMan;
|
||||
import se.urmo.game.main.Game;
|
||||
import se.urmo.game.map.GameMap;
|
||||
import se.urmo.game.util.Direction;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
package se.urmo.game;
|
||||
package se.urmo.game.util;
|
||||
|
||||
public enum Direction {
|
||||
// private static final int RIGHT = 0;
|
||||
// private static final int LEFT = 1;
|
||||
// private static final int DOWN = 2;
|
||||
// private static final int UP = 3;
|
||||
RIGHT(1, 0),
|
||||
LEFT(-1, 0),
|
||||
DOWN(0, 1),
|
||||
Reference in New Issue
Block a user