public void boss(final Boss boss) {
forward.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
boss.setHp(boss.getHp()
This should work. Also you don't have to pass boss as function parameter. You can keep that object as field in your class.
public void boss(final Boss boss) {
forward.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
if(boss.getHp() > 0){
boss.setHp(boss.getHp() - 1);
log("" + boss.getHp());
} else {
//boss is dead
}
}
});
}