cleanup: optimize imports

This commit is contained in:
2021-06-01 17:19:48 +02:00
parent 5984e40384
commit 9c2c814e98
6 changed files with 12 additions and 12 deletions

View File

@ -1,22 +1,22 @@
package uulm.teamname.marvelous.gamelibrary.gamelogic;
import uulm.teamname.marvelous.gamelibrary.IntVector2;
import uulm.teamname.marvelous.gamelibrary.Tuple;
import uulm.teamname.marvelous.gamelibrary.entities.*;
import uulm.teamname.marvelous.gamelibrary.entities.Character;
import uulm.teamname.marvelous.gamelibrary.events.*;
import uulm.teamname.marvelous.gamelibrary.entities.*;
import uulm.teamname.marvelous.gamelibrary.events.Event;
import uulm.teamname.marvelous.gamelibrary.events.*;
import uulm.teamname.marvelous.gamelibrary.json.config.FieldType;
import uulm.teamname.marvelous.gamelibrary.requests.CharacterRequest;
import uulm.teamname.marvelous.gamelibrary.requests.Request;
import uulm.teamname.marvelous.gamelibrary.requests.RequestType;
import java.awt.*;
import java.awt.geom.Area;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Random;
/** Contains game logic handling. */
class GameLogic {

View File

@ -86,7 +86,7 @@ class GameStateManager {
* @return A list of applied events
*/
public ArrayList<Event> apply() {
ArrayList<Event> toReturn = new ArrayList<Event>(queue.size());
ArrayList<Event> toReturn = new ArrayList<>(queue.size());
Event current;
while ((current = queue.poll()) != null) {
GameLogic.applyEvent(state, current);