The problem is not with your scoreboard. It is with your counter (or should I say counter[b][i]s[/i][/b]. You should only have one counter; either in the Pasaulis world class or in the Gyvanai actor class. If in the world class you will need another method to get either the counter itself or the value of the counter ('public Counter getCounter' or 'public int getCounterValue'). You must get a reference to this same counter anytime you wish to change or retrieve its value. My suggestion to you is to have it in the Pasaulis world class due to the fact that you are changing its value from one actor class and retrieving its value from another when the game ends. Go through your code and make sure you only have one Counter object. Also, there is no need to have a field for the Scoreboard object. When the game is decidedly over, get the value of the counter and create a new Scoreboard on the spot to add to the world.
2013/2/25
2013/2/25
2013/2/26
2013/2/26