public void onHover(Powers powers) { if (activated) { powers.hoverPower = this; } else { // Print display message from new display message class } }
public void onClick(Powers powers) { if (activated && purchased) { powers.currentPower = this; } else { try { powers.currentPower = new Power( 0, 0, 0, new Texture(draw.getResource("Player/powersselect.png")), draw, 0, new String[] {"Purchase a tome before", "can select//use it"}, "The Tome of the Poor"); } catch (IOException e) { } } }