Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (137)
games submitted by our members
Games in WIP (594)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Does this cause lack of Performance?  (Read 2401 times)
0 Members and 1 Guest are viewing this topic.
Offline Andre Lopes
« Posted 2013-10-12 03:37:21 »

I call those methods in every render();

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
 public void showHealthPotionsQuantity(int healthPotions) {   
       
        slotOne_Health.setText("" + healthPotions);
    }

    public void showManaPotionsQuantity(int manaPotions) {
        slotTwo_Mana.setText("" + manaPotions);
    }

    public void showDiamondsQuantity(int diamondsQuantity) {
        slotThree_Diamonds.setText("" + diamondsQuantity);
    }

    public void showArrowsQuantity(int normalArrows, int heavyArrows) {
        slotFour_ArrowNormal.setText("" + normalArrows);
        slotFive_HeavyArrow.setText("" + heavyArrows);

    }


Should i use StringBuffer/StringBuilder?
Online SHC

2: log() expects parameter 1 to be double, string given
File: /home/jgo/public_html/addon_appreciation.php
Line: 191