Skip to content
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

Merged
merged 46 commits into from Nov 2, 2018
Merged

Conversation

MagicalLas
Copy link
Collaborator

@MagicalLas MagicalLas commented Oct 29, 2018

리소스 시스템과 지형 시스템을 구현하였습니다. 아래는 구조입니다.
대부분의 매개변수나 반환하는 값은 포인터로 반환합니다.
이러한 구조를 취했던 이유는 리소스가 지형에 의존적이기 때문입니다.
Resource를 다시 구현함에 따라서 Obtainable을 삭제하였습니다.
image

Sources/Resource.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Terrain.cpp Outdated Show resolved Hide resolved
Sources/Worker.cpp Outdated Show resolved Hide resolved
Copy link
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.

수정해야 될 내용 표시해뒀는데, 이외에도 소스 파일의 네임스페이스에 Civilizationpp까지 쓰지 않도록 using namespace Civilizationpp;를 하거나 namespace Civilizationpp { ... }로 처리 부탁드립니다. 그리고 각 함수마다 한 줄씩 띄워주세요.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

스타일 관련 수정사항은 다른 분께서 나열하셨으니 이에 대해서는 말하지 않겠습니다. 근데 사실 딱히 말할 내용이 없긴 하네요. 차후 개발을 위해 더 논의 되어야하는 부분들이 무엇인지를 고려하고, 잘 드러내도록 작성한 완결성있는 코드라 생각합니다.

(위에서 말한 고려되어야 하는 부분은 주로 전투/이동의 구체적인 계산식과 명명 관련 문제, 그리고 현 구조상 한 타일의 정보를 얻기 위해 필요한 코드의 길이가 굉장히 길어지는 현상입니다. 이건 따로 논의 되어야 할 부분이지 지금 수정해야 될 사항이라 생각하지는 않습니다.)

@utilForever utilForever unassigned utilForever and ghost Nov 2, 2018
@utilForever utilForever changed the title Implementation of Terrain and Resource System Implement terrain and resource system (#9, #10) Nov 2, 2018
Copy link
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.

몇 가지 수정해야 할 코드가 남아있지만 큰 문제는 아니므로 이쯤에서 마무리하고 머지 진행하겠습니다.
작업하느라 고생하셨습니다.

@utilForever utilForever merged commit ca47901 into master Nov 2, 2018
Ver 0.2 automation moved this from To do to Done Nov 2, 2018
@utilForever utilForever deleted the Terrain branch November 4, 2018 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Ver 0.2
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants