Skip to content

Commit 0d49aa7

Browse files
committed
Dependencies corrected.
1 parent 1cc2702 commit 0d49aa7

51 files changed

Lines changed: 188 additions & 250 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Mithosis/src/core/Context.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.google.gson.JsonParseException;
55
import core.model.*;
66
import core.model.Map;
7+
import model.*;
78
import server.core.model.ClientInfo;
89
import util.Constants;
910

@@ -23,8 +24,8 @@ public class Context {
2324
private Map map;
2425
private Team[] teams;
2526

26-
private HashMap<String,DynamicGameObject> allDynamicObjects;
27-
private HashMap<String,Cell> allCells;
27+
private HashMap<String, DynamicGameObject> allDynamicObjects;
28+
private HashMap<String, Cell> allCells;
2829

2930
private ArrayList<Position[]> relatedVisiblePositionsFromOdd;
3031
private ArrayList<Position[]> relatedVisiblePositionsFromEven;

Mithosis/src/core/MitosisGameLogic.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package core;
22

33
import core.model.*;
4-
import core.model.Cell;
4+
import model.*;
55
import core.model.Map;
6-
import messages.*;
6+
import data.*;
77
import util.Constants;
88
import server.Server;
99
import server.core.GameLogic;
1010
import server.core.model.ClientInfo;
11-
import server.core.model.Event;
12-
import server.network.data.Message;
11+
import model.Event;
12+
import network.data.Message;
1313

1414
import java.io.IOException;
1515
import java.util.*;

Mithosis/src/core/model/Block.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package core.model;
22

33
import core.Context;
4-
import messages.BlockData;
5-
import messages.StaticData;
4+
import data.BlockData;
5+
import data.StaticData;
6+
import model.Position;
67
import util.Constants;
78
import util.UID;
89

Mithosis/src/core/model/Cell.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
package core.model;
22

33
import core.Context;
4-
import messages.CellData;
5-
import messages.DynamicData;
4+
import data.CellData;
5+
import data.DynamicData;
6+
import model.Direction;
7+
import model.Position;
68
import util.Constants;
79
import util.UID;
810

911
import java.util.ArrayList;
10-
import java.util.Arrays;
11-
import java.util.Collection;
12-
import java.util.Collections;
1312

1413
/**
1514
* Created by rajabzz on 2/2/15.
1615
*/
17-
public class Cell extends DynamicGameObject{
16+
public class Cell extends DynamicGameObject {
1817
public static final int MIN_ENERGY_FOR_MITOSIS = 50; //TODO can change later
1918

2019
private Context ctx;
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
package core.model;
22

33

4+
import model.GameObject;
5+
46
/**
57
* Created by rajabzz on 2/3/15.
68
*/
7-
public class DynamicGameObject extends GameObject{
9+
public class DynamicGameObject extends GameObject {
10+
811
public static final String NAME = "dynamic";
912

1013
public static final int CELL_OTHER_INDEX_TEAM_ID = 0;
1114

1215
final protected int teamId;
1316

14-
DynamicGameObject(int teamId)
15-
{
17+
DynamicGameObject(int teamId) {
1618
this.teamId = teamId;
1719
}
1820

19-
20-
2121
public int getTeamId() {
2222
return teamId;
2323
}
24+
2425
}

Mithosis/src/core/model/Map.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package core.model;
22

33
import com.google.gson.Gson;
4-
import com.google.gson.JsonObject;
54
import core.Context;
5+
import model.Position;
66
import util.Constants;
77

88
import java.io.File;

Mithosis/src/core/model/Position.java

Lines changed: 0 additions & 125 deletions
This file was deleted.

Mithosis/src/core/model/Team.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package core.model;
22

33
import core.Context;
4-
import core.MitosisGameLogic;
4+
import model.Position;
55
import server.core.model.ClientInfo;
66
import util.Constants;
77

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package messages;
1+
package core.model;
22

3-
import core.model.DynamicGameObject;
4-
import core.model.StaticGameObject;
5-
import core.model.Transient;
3+
import data.DynamicData;
4+
import data.StaticData;
5+
import model.Transient;
66

77
import java.util.ArrayList;
88

Terminal/Terminal.iml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
</content>
88
<orderEntry type="inheritedJdk" />
99
<orderEntry type="sourceFolder" forTests="false" />
10-
<orderEntry type="module" module-name="JGFramework" />
11-
<orderEntry type="module" module-name="JeyC2015" />
12-
<orderEntry type="library" name="gson-2.3.1 (2)" level="project" />
13-
<orderEntry type="module" module-name="JeyC2015" />
1410
<orderEntry type="library" name="gson-2.3.1" level="project" />
11+
<orderEntry type="module" module-name="common" />
1512
</component>
1613
</module>

0 commit comments

Comments
 (0)