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


class Overload
{
private://생략가능
int hp;
int damage;
int coord_x, coord_y;
bool is_dead;

public:
Overload();
Overload(int x, int y);
int max_unit();
void be_attacked(int damage_earn);
void move(int x, int y);

void show_status();
};

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

void Overload::show_status() {
std::cout << " *** Overload *** " << std::endl;
std::cout << " Location : ( " << coord_x << " , " << coord_y << " ) "
<< std::endl;
std::cout << " HP : " << hp << std::endl;
}


int main() {
int unit=10;
Overload overload1(2, 3);
Overload overload2(3, 5);
overload1.show_status();
overload2.show_status();

}


C린이 질문있습니다. 제가 블로그를 찾아보면서 스타크래프트 오버로드 유닛을 만들고 있는데 오버로드가 생길때마다 최대 유닛수를 5씩 증가시키고 싶은데 감이 잘 안잡힙니다....저기서 overload1이 생길때 max_unit+=5, overload2이 생길 때  max_unit+=5해서  max_unit이 총 10개 생기게 하고싶어요 ㅠㅠ