Esempio n. 1
0
 //augmenta la vida sense passar-se del limit de vida
 void increaseHeal(MainPjMovement target, int num)
 {
     target.setHP(target.getHP() + num);
     if (target.getHP() > target.getMAXHP())
     {
         target.setHP(target.getMAXHP());
     }
 }
Esempio n. 2
0
 //augmenta el mana sense passar-se del limit de mana
 void increaseMana(MainPjMovement target, int num)
 {
     target.setHP(target.getMP() + num);
     if (target.getMP() > target.getMAXMP())
     {
         target.setMP(target.getMAXMP());
     }
 }
Esempio n. 3
0
	//augmenta el mana sense passar-se del limit de mana
	void increaseMana(MainPjMovement target, int num){
		target.setHP(target.getMP()+num);
		if (target.getMP() > target.getMAXMP()){
			target.setMP (target.getMAXMP());
		}
	}	
Esempio n. 4
0
	//augmenta la vida sense passar-se del limit de vida
	void increaseHeal( MainPjMovement target, int num){
		target.setHP(target.getHP()+num);
		if (target.getHP() > target.getMAXHP()){
			target.setHP (target.getMAXHP());
		}
	}