#include <iostream>
#include <string.h>

class Overlord
{
private:
int hp;
int damage;
int coord_x, coord_y;
bool is_dead;

public:
  static int unit_count_;
  static int unit_count();  
Overlord();
Overlord(int x, int y);
void be_attacked(int damage_earn);
void move(int x, int y);
void max_unit();
void show_status();
};

int Overlord::unit_count_ = 10;



Overlord::Overlord(){
hp=200;
coord_x=coord_y=0;
damage=0;
is_dead=false;

}

Overlord::Overlord(int x, int y){
coord_x=x;
coord_y=y;
hp=200;
is_dead=false;
}
void Overlord::move(int x, int y)
{
coord_x=x;
coord_y=y;
}


void Overlord::show_status() {
std::cout << " *** Overload *** " << std::endl;
std::cout << " Location : ( " << coord_x << " , " << coord_y << " ) "
<< std::endl;
std::cout << "Max_unit : " << unit_count() << std::endl;
}



int main() {
Overlord overload1(2, 3);
Overlord overload2(3, 5);
overload1.show_status();
overload2.show_status();
}
int Overlord::unit_count()    
{
unit_count_+=5;
  return unit_count_;
}


오 기분좋아! 그리고 overload에서 lord로 고쳐왔어요!