Beispiel #1
0
 public void logic(MouseHandling mouse, UI ui) {
   mouseHover = mouse.mouseHover(boundingBox);
   if (mouseHover) {
     if (mouse.leftClicked()) {
       onClick(ui);
     }
   }
 }
Beispiel #2
0
 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);
     }
   }
 }