Changeset b97a618 in advance-wars for src/com/medievaltech/game/Unit.java
- Timestamp:
- Feb 2, 2011, 4:51:03 PM (14 years ago)
- Branches:
- master
- Children:
- 78d3c6f
- Parents:
- 6a639f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/medievaltech/game/Unit.java
r6a639f7 rb97a618 60 60 visited[p.x-location.x+move-1][p.y-location.y+move] = true; 61 61 } 62 if(p.x< 8&& p.x<location.x+move && !visited[p.x-location.x+move+1][p.y-location.y+move]) {62 if(p.x<5 && p.x<location.x+move && !visited[p.x-location.x+move+1][p.y-location.y+move]) { 63 63 cur.add(new Point(p.x+1, p.y)); 64 64 visited[p.x-location.x+move+1][p.y-location.y+move] = true; … … 68 68 visited[p.x-location.x+move][p.y-location.y+move-1] = true; 69 69 } 70 if(p.y< 6&& p.y<location.y+move && !visited[p.x-location.x+move][p.y-location.y+move+1]) {70 if(p.y<7 && p.y<location.y+move && !visited[p.x-location.x+move][p.y-location.y+move+1]) { 71 71 cur.add(new Point(p.x, p.y+1)); 72 72 visited[p.x-location.x+move][p.y-location.y+move+1] = true;
Note:
See TracChangeset
for help on using the changeset viewer.