public void logic(MouseHandling mouse, UI ui) { mouseHover = mouse.mouseHover(boundingBox); if (mouseHover) { if (mouse.leftClicked()) { onClick(ui); } } }
public void logic(MouseHandling mouse, Powers powers) { mouseHover = mouse.mouseHover(boundingBox); if (mouseHover) { System.out.print("Hover"); onHover(powers); if (mouse.leftClicked()) { System.out.print("Impressive"); onClick(powers); } } }