Skip to content

Commit d3d920a

Browse files
Further OOP changes, moved generics into own package
1 parent 13bb97f commit d3d920a

8 files changed

+9
-2
lines changed

java/src/s2/Mopper.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package s2;
22

33
import battlecode.common.*;
4+
import s2.generics.GenericRobotContoller;
45

56
public class Mopper implements GenericRobotContoller {
67

java/src/s2/Pathing.java

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package s2;
22

33
import battlecode.common.*;
4+
import s2.generics.GenericFunc;
5+
46
import java.util.Random;
57

68
public class Pathing {

java/src/s2/RobotPlayer.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package s2;
22

33
import battlecode.common.*;
4+
import s2.generics.GenericRobotContoller;
45
public class RobotPlayer {
56
public static void run(RobotController rc) throws GameActionException {
67
GenericRobotContoller processor;

java/src/s2/Soldier.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package s2;
22

33
import battlecode.common.*;
4+
import s2.generics.GenericRobotContoller;
45

56
public class Soldier implements GenericRobotContoller {
67
boolean isBuildingRuin = false;

java/src/s2/Splasher.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package s2;
22

33
import battlecode.common.*;
4+
import s2.generics.GenericRobotContoller;
45

56
public class Splasher implements GenericRobotContoller {
67
RobotController rc;

java/src/s2/Tower.java

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package s2;
22
import java.util.Random;
33
import battlecode.common.*;
4+
import s2.generics.GenericRobotContoller;
45

56
public class Tower implements GenericRobotContoller {
67

java/src/s2/GenericFunc.java java/src/s2/generics/GenericFunc.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s2;
1+
package s2.generics;
22

33
import battlecode.common.*;
44

java/src/s2/GenericRobotContoller.java java/src/s2/generics/GenericRobotContoller.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package s2;
1+
package s2.generics;
22

33
import battlecode.common.*;
44

0 commit comments

Comments
 (0)