@param type class of the objects we want to retrieve @return array filled with all the objects in the collection matching type
(Class<T> type)
| 82 | /** @param type class of the objects we want to retrieve |
| 83 | * @return array filled with all the objects in the collection matching type */ |
| 84 | public <T extends MapObject> Array<T> getByType (Class<T> type) { |
| 85 | return getByType(type, new Array<T>()); |
| 86 | } |
| 87 | |
| 88 | /** @param type class of the objects we want to retrieve |
| 89 | * @param fill collection to put the returned objects in |