Browse Source

Обновить 'source/units/unit.cpp'

Arkady Bokov 6 years ago
parent
commit
8b3d8c19ba
1 changed files with 8 additions and 0 deletions
  1. 8 0
      source/units/unit.cpp

+ 8 - 0
source/units/unit.cpp

@@ -142,6 +142,14 @@ void Unit::setLocation(Cell* to) {
 	location_ = to;
 }
 
+int Unit::getMaxHealthPoints(){
+ 	return max_health_points_;  
+};
+  	
+void setHealthPoints(int value){
+	health_points_ = value;
+};
+
 int Unit::getInitiative() {
 	return initiative_;
 }