public boolean collide(int x, int y, Object object){ System.out.println(object); if (object instanceof Actor){ if (World.getOneActorAt(x,y,(Actor)object)!=null){ return true; } } if (object instanceof TileType){ TileType type = World.getTheTileTypeAt(x,y,(TileType) object); if (type!=null){ return true; } } return false; }

