예제 #1
0
  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);
    }
  }
예제 #2
0
 public void revert() {
   price.normalImage();
   name.normalImage();
 }
예제 #3
0
 public void mouseOverProtocol() {
   price.highlight();
   name.highlight();
 }