2014/9/15
private int actCounter;
public void act() { actCounter++; if (actCounter == /* limiting value */ ) { // code to level up } }
2014/9/16
X