New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement terrain and resource system (#9, #10) #26
Conversation
내부 변수들을 수정하고 Getter를 추가하였습니다.
코딩 컨벤션에 맞게 수정하였습니다. private로 바꾸고 Getter를 추가 하였습니다.
Getter를 정의한 파일을 추가하였습니다.
줄정리도 하였다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정해야 될 내용 표시해뒀는데, 이외에도 소스 파일의 네임스페이스에 Civilizationpp까지 쓰지 않도록 using namespace Civilizationpp;
를 하거나 namespace Civilizationpp { ... }
로 처리 부탁드립니다. 그리고 각 함수마다 한 줄씩 띄워주세요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스타일 관련 수정사항은 다른 분께서 나열하셨으니 이에 대해서는 말하지 않겠습니다. 근데 사실 딱히 말할 내용이 없긴 하네요. 차후 개발을 위해 더 논의 되어야하는 부분들이 무엇인지를 고려하고, 잘 드러내도록 작성한 완결성있는 코드라 생각합니다.
(위에서 말한 고려되어야 하는 부분은 주로 전투/이동의 구체적인 계산식과 명명 관련 문제, 그리고 현 구조상 한 타일의 정보를 얻기 위해 필요한 코드의 길이가 굉장히 길어지는 현상입니다. 이건 따로 논의 되어야 할 부분이지 지금 수정해야 될 사항이라 생각하지는 않습니다.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
몇 가지 수정해야 할 코드가 남아있지만 큰 문제는 아니므로 이쯤에서 마무리하고 머지 진행하겠습니다.
작업하느라 고생하셨습니다.
리소스 시스템과 지형 시스템을 구현하였습니다. 아래는 구조입니다.
대부분의 매개변수나 반환하는 값은 포인터로 반환합니다.
이러한 구조를 취했던 이유는 리소스가 지형에 의존적이기 때문입니다.
Resource를 다시 구현함에 따라서 Obtainable을 삭제하였습니다.