/**
* Returns the currently selected cell, null if no cell is currently
* selected.
*/
private Cell getSelectedCell() {
SceneManager manager = SceneManager.getSceneManager();
List<Entity> entityList = manager.getSelectedEntities();
if (entityList != null && entityList.size() > 0) {
return SceneManager.getCellForEntity(entityList.get(0));
}
return null;
}