import javax.swing.JPanel;
import javax.swing.JLabel;

public class Status extends JPanel{
	int score;
	int xp;
	JLabel score_l, xp_l, numE_l;
	
	public Status(){
		score = 0;
		xp = 0;
		
		score_l = new JLabel("Score: "+score);
		xp_l = new JLabel("xp: "+xp);
		
		add(score_l);
		add(xp_l);
		
	}
	public void increaseStatus(int score,int xp){
		this.score += score;
		this.xp += xp;
		update();
	}
	public void setStatus(int score,int xp){
		this.score = score;
		this.xp = xp;
	}
	public void update(){
		score_l.setText("Score: "+score);
		xp_l.setText("xp: "+xp);
	}
}