public int addMana(int mana,boolean tell){
  int old_mana=getMana();
  int new_mana=old_mana + mana;
  int given=0;
  new_mana=Math.max(new_mana,0);
  new_mana=Math.min(new_mana,getBaseMana());
  given=new_mana - old_mana;
  if (tell) {
  }
  setMana(new_mana);
  return given;
}

public int addMana ( int mana , boolean tell ) { int old_mana = getMana ( ) ; int new_mana = old_mana + mana ; int given = 0 ; new_mana = Math . max ( new_mana , 0 ) ; new_mana = Math . min ( new_mana , getBaseMana ( ) ) ; given = new_mana - old_mana ; if ( tell ) { } setMana ( new_mana ) ; return given ; }
give mana to the entity .
