hi
This commit is contained in:
+11
-11
@@ -105,13 +105,13 @@ public class Visitor
|
|||||||
possible = false;
|
possible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// for (Visitor object : visitors)
|
for (Visitor object : visitors)
|
||||||
// {
|
{
|
||||||
// if (hitTestVisitor(object) && object != this)
|
if (hitTestVisitor(object) && object != this)
|
||||||
// {
|
{
|
||||||
// possible = false;
|
possible = false;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
if (possible == false)
|
if (possible == false)
|
||||||
{
|
{
|
||||||
position = oldPosition;
|
position = oldPosition;
|
||||||
@@ -216,8 +216,8 @@ public class Visitor
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public boolean hitTestVisitor(Visitor v)
|
public boolean hitTestVisitor(Visitor v)
|
||||||
// {
|
{
|
||||||
// return (getEndX() >= v.position.getX() && getEndY() >= v.position.getY() && v.getEndX() >= position.getX() && v.getEndY() >= position.getY());
|
return (getEndX() >= v.position.getX() && getEndY() >= v.position.getY() && v.getEndX() >= position.getX() && v.getEndY() >= position.getY());
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user