Shape – 벽돌의 모양 만들기

   

Shape 모양은 CShape 를 상속받아 모양만 만들어 주면 됩니다.

 

 

Shape1

 

CShape1::CShape1()

{

    SetOneBlocks(0,COneBlock(0,0),     COneBlock(0,1), COneBlock(1,0)    COneBlock(1,1) );

    SetOneBlocks(1,COneBlock(0,0),     COneBlock(0,1), COneBlock(1,0), COneBlock(1,1) );

    SetOneBlocks(2,COneBlock(0,0),     COneBlock(0,1), COneBlock(1,0), COneBlock(1,1) );

    SetOneBlocks(3,COneBlock(0,0),     COneBlock(0,1), COneBlock(1,0), COneBlock(1,1) );

}

 

 

 

 

Shape2

 

 

CShape2::CShape2()

{

    SetOneBlocks(0,COneBlock(0,1),     COneBlock(1,1),    COneBlock(2,1),    COneBlock(3,1));

    SetOneBlocks(1,COneBlock(1,0),     COneBlock(1,1), COneBlock(1,2),COneBlock(1,3));

    SetOneBlocks(2,COneBlock(0,1),     COneBlock(1,1), COneBlock(2,1), COneBlock(3,1));

    SetOneBlocks(3,COneBlock(1,0),     COneBlock(1,1), COneBlock(1,2), COneBlock(1,3));

}

 

 

 

 

Shape3

 

 

CShape3::CShape3()

{

    SetOneBlocks(0,COneBlock(0,1),     COneBlock(1,1),    COneBlock(1,0),    COneBlock(1,2));

    SetOneBlocks(1,COneBlock(0,1),     COneBlock(1,1),    COneBlock(1,0),    COneBlock(2,1));

    SetOneBlocks(2,COneBlock(2,1),     COneBlock(1,1),    COneBlock(1,0),    COneBlock(1,2));

    SetOneBlocks(3,COneBlock(0,1),     COneBlock(1,1),    COneBlock(2,1),    COneBlock(1,2));

}

 

 

 

 

Shape4

 

 

 

CShape4::CShape4()

{

    SetOneBlocks(0,COneBlock(0,0),     COneBlock(1,0),    COneBlock(1,1),    COneBlock(1,2));

    SetOneBlocks(1,COneBlock(2,0),     COneBlock(0,1),    COneBlock(1,1),    COneBlock(2,1));

    SetOneBlocks(2,COneBlock(0,0),     COneBlock(0,1),    COneBlock(0,2),    COneBlock(1,2));

    SetOneBlocks(3,COneBlock(0,0),     COneBlock(1,0),    COneBlock(2,0),    COneBlock(0,1));

}

 

 

 

 

Shape5

 

 

 

CShape5::CShape5()

{

    SetOneBlocks(0,COneBlock(0,2),     COneBlock(1,0),    COneBlock(1,1),    COneBlock(1,2));

    SetOneBlocks(1,COneBlock(0,0),     COneBlock(0,1),    COneBlock(1,1),    COneBlock(2,1));

    SetOneBlocks(2,COneBlock(0,0),     COneBlock(1,0),    COneBlock(0,1),    COneBlock(0,2));

    SetOneBlocks(3,COneBlock(0,0),     COneBlock(1,0),    COneBlock(2,0),    COneBlock(2,1));

}

 

 

 

 

Shape6

 

 

 

CShape6::CShape6()

{

    SetOneBlocks(0,COneBlock(0,0),    COneBlock(0,1),    COneBlock(1,1),    COneBlock(1,2));

    SetOneBlocks(1,COneBlock(1,0), COneBlock(2,0), COneBlock(0,1),COneBlock(1,1));

    SetOneBlocks(2,COneBlock(0,0), COneBlock(0,1), COneBlock(1,1),COneBlock(1,2));

    SetOneBlocks(3,COneBlock(1,0), COneBlock(2,0), COneBlock(0,1),COneBlock(1,1));

}

 

 

 

 

Shape7

 

 

 

CShape7::CShape7()

{

    SetOneBlocks(0,COneBlock(1,0),     COneBlock(0,1),    COneBlock(1,1),    COneBlock(0,2));

    SetOneBlocks(1,COneBlock(0,0),     COneBlock(1,0),    COneBlock(1,1),    COneBlock(2,1));

    SetOneBlocks(2,COneBlock(1,0),     COneBlock(0,1),    COneBlock(1,1),    COneBlock(0,2));

    SetOneBlocks(3,COneBlock(0,0),     COneBlock(1,0),    COneBlock(1,1),    COneBlock(2,1));

}

사업자 정보 표시
화이트앳 | 박원호 | 서울 용산 서계동 252-8 | 사업자 등록번호 : 106-11-55283 | TEL : 070-4412-5754 | 통신판매신고번호 : 2011-서울용산-01007호 | 사이버몰의 이용약관 바로가기

+ Recent posts

티스토리 툴바