Implement roads and settlements #27

Merged
aebertan merged 9 commits from implement-roads-and-settlements into dev 2025-07-06 12:24:46 +00:00
aebertan commented 2021-12-03 18:05:45 +00:00 (Migrated from github.zhaw.ch)

Changes made in this pull request will add methods for building structures. Furthermore resource holders can now handle resource maps and structure classes now contain their enum types. Also the SiedlerStreet class was changed to extend SiedlerStructure class instead of SiedlerSettlement.

Changes made in this pull request will add methods for building structures. Furthermore resource holders can now handle resource maps and structure classes now contain their enum types. Also the SiedlerStreet class was changed to extend SiedlerStructure class instead of SiedlerSettlement.
zumbrseb (Migrated from github.zhaw.ch) requested changes 2021-12-03 20:42:35 +00:00
zumbrseb (Migrated from github.zhaw.ch) left a comment

Well done. Looks good.
There are a few places where the javadoc is missing.

Well done. Looks good. There are a few places where the javadoc is missing.
@ -20,0 +32,4 @@
/**
* Verifies if the selected location is a valid location for a settlement.
*
* @return true, if the location of the settlement is valid.
zumbrseb (Migrated from github.zhaw.ch) commented 2021-12-03 20:27:45 +00:00

JavaDoc is missing

JavaDoc is missing
@ -20,0 +116,4 @@
* Verifies if the settlement has an adjacent field.
*
* @return true, if there is an adjacent field.
*/
zumbrseb (Migrated from github.zhaw.ch) commented 2021-12-03 20:37:48 +00:00

javadoc

javadoc
zumbrseb (Migrated from github.zhaw.ch) commented 2021-12-03 20:30:22 +00:00

Consider changing the name to incrementResources() for consistency (or changing incrementResource(resource, by) above to addResource(resourceMap)). The same goes for removeResources(resourceMap) and removeResource(resource, by)

Consider changing the name to `incrementResources()` for consistency (or changing `incrementResource(resource, by)` above to `addResource(resourceMap)`). The same goes for `removeResources(resourceMap)` and `removeResource(resource, by)`
costajon (Migrated from github.zhaw.ch) approved these changes 2021-12-04 20:47:04 +00:00
costajon (Migrated from github.zhaw.ch) left a comment

Looks good to me. Nicely done

Looks good to me. Nicely done
Sign in to join this conversation.
No description provided.