예제 #1
0
 /**
  * Return all the objects that intersect the given object. This takes the graphical extent of
  * objects into consideration.
  *
  * @param actor An Actor in the world
  * @param cls Class of objects to look for (null or Object.class will find all classes)
  */
 List getIntersectingObjects(Actor actor, Class cls) {
   return collisionChecker.getIntersectingObjects(actor, cls);
 }
예제 #2
0
파일: World.java 프로젝트: rma93/greenfoot
 /**
  * Return all the objects that intersect the given object. This takes the graphical extent of
  * objects into consideration.
  *
  * @param actor An Actor in the world
  * @param cls Class of objects to look for (null or Object.class will find all classes)
  */
 @SuppressWarnings("unchecked")
 List getIntersectingObjects(Actor actor, Class cls) {
   return collisionChecker.getIntersectingObjects(actor, cls);
 }