Skip to content

Commit 1d1ccf0

Browse files
authored
Merge pull request #83 from battlecode/cat_rework
Cat rework
2 parents 3fda251 + d5020b1 commit 1d1ccf0

5 files changed

Lines changed: 146 additions & 264 deletions

File tree

engine/src/main/battlecode/common/GameConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public class GameConstants {
202202
public static final int CAT_SCRATCH_DAMAGE = 20;
203203

204204
/** The distance squared a cat can pounce to */
205-
public static final int CAT_POUNCE_MAX_DISTANCE_SQUARED = 9;
205+
public static final int CAT_POUNCE_MAX_DISTANCE_SQUARED = 13;
206206

207207
public static final int CAT_DIG_ADDITIONAL_COOLDOWN = 5;
208208

engine/src/main/battlecode/world/CatStateType.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
public enum CatStateType {
44
EXPLORE,
5-
CHASE,
6-
SEARCH,
75
ATTACK
86
}

engine/src/main/battlecode/world/GameWorld.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void bfsFromTarget(MapLocation target, int chirality){
235235
MapLocation nextLoc = queue.poll();
236236

237237
// check neighbors
238-
for (Direction d : Direction.allDirections()){
238+
for (Direction d : new Direction[]{Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.NORTHEAST, Direction.SOUTHEAST, Direction.SOUTHWEST, Direction.NORTHWEST}){
239239
if (d == Direction.CENTER)
240240
continue;
241241

0 commit comments

Comments
 (0)