Skip to content
Snippets Groups Projects
Commit b29d56b2 authored by sfphoton's avatar sfphoton
Browse files

Direction::oppositeDir() renamed to opposite()

parent 02d3de55
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ public enum Direction {
default : return DOWN;
}
}
public Direction oppositeDir()
public Direction opposite()
{
switch (this)
{
......
......@@ -68,7 +68,7 @@ public class SimpleField extends AbstractField {
ArrayList<Boolean> couldMove=new ArrayList<Boolean>();
for (int i=0; i<4; i++)
{
if (Direction.Dir(i)!=d.oppositeDir()) couldMove.add(neighbours.get(d).couldMoveOn(d));
if (Direction.Dir(i)!=d.opposite()) couldMove.add(neighbours.get(d).couldMoveOn(d));
else couldMove.add(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment