public void clickedProtocol() { affordCheck(); if (canAfford) { roy.specialAbilities[specialAbilitiesLoc].count++; roy.abilitiesCount++; ((Store) this.getWorld()).updateRoyMoney(cost); count++; myCount.increment(); cost = cost + count * 10; affordCheck(); price.setPrice(canAfford, cost); } }
public void revert() { price.normalImage(); name.normalImage(); }
public void mouseOverProtocol() { price.highlight(); name.highlight(); }