Skip to content

Implement Collatz Conjecture Tower#57

Open
IHIHHIHI wants to merge 7 commits into
mainfrom
tower/collatz
Open

Implement Collatz Conjecture Tower#57
IHIHHIHI wants to merge 7 commits into
mainfrom
tower/collatz

Conversation

@IHIHHIHI
Copy link
Copy Markdown
Collaborator

@IHIHHIHI IHIHHIHI commented Jan 1, 2023

콜라츠 추측 타워를 구현하는 것이 목표인 PR입니다.

  • 콜라츠 추측 방식으로 데미지를 주는 타워 구현
  • 타워 생성 버튼 구현
  • 콜라츠 타워를 위한 데미지 컴포넌트 생성

추가적인 해야 할 일은 다음과 같습니다.

  • 테스트케이스 생성
  • 업그레이드 적용(콜라츠 타워의 회복량의 최솟값이 생기는 업그레이드 같은 것들) -> 데미지 컴포넌트의 추가적인 수정이 필요합니다.

@IHIHHIHI
Copy link
Copy Markdown
Collaborator Author

IHIHHIHI commented Jan 1, 2023

스크린샷 2023-01-01 오후 9 49 44

이와 같이 생겼습니다.

}
else
{
damage = -(health.curAmount * 2 + 1);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

음수 데미지가 바람직한 방식인지는 모르겠습니다.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구현 방향을 정하기 나름일 거 같은데, 패널티를 어떻게 주고 싶음?
데미지를 0으로 만들기 또는 체력을 오히려 회복하기

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

회복하는게 의도입니다.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

흠... 데미지를 -로 주는 건 체력을 회복하는 의도와는 맞지 않으니, 별도로 체력을 회복하는 로직을 넣는게 좋겠다고 생각해. GiveDamage()가 아닌 TakeHeal()라는 이름의 함수를 하나 만들어서 처리합시다.

@utilForever utilForever changed the title 콜라츠 추측 타워 구현 Implement Collatz Conjecture Tower Jan 1, 2023
Copy link
Copy Markdown
Owner

@utilForever utilForever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me except some code. Can you check my comments? Thanks. 🌆

Comment thread Includes/CubbyTower/Components/CollatzDamage.hpp Outdated
Comment thread Includes/CubbyTower/Components/CollatzDamage.hpp Outdated
Comment thread Includes/CubbyTower/Helpers/ShootingHelpers.hpp Outdated
Comment thread Sources/CubbyTower/Helpers/ShootingHelpers.cpp
Comment thread Sources/CubbyTower/Helpers/ShootingHelpers.cpp Outdated
}
else
{
damage = -(health.curAmount * 2 + 1);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구현 방향을 정하기 나름일 거 같은데, 패널티를 어떻게 주고 싶음?
데미지를 0으로 만들기 또는 체력을 오히려 회복하기

Comment thread Sources/CubbyTower/Helpers/ShootingHelpers.cpp
Comment thread Sources/CubbyTower/Helpers/ShootingHelpers.cpp Outdated
Copy link
Copy Markdown
Collaborator

@red1108 red1108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

옥찬호님 꺼만 다 해결하면 LGTM

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

0.0% 0.0% Coverage
9.5% 9.5% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants