-
Notifications
You must be signed in to change notification settings - Fork 14
Создал модуль по генерации карт #3
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
Conversation
CreateMap/pom.xml
Outdated
|
|
||
| <artifactId>CreateMap</artifactId> | ||
|
|
||
| <properties> |
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.
Мы используем Java 11, версия компилятора прописана в главном pom-файле. Эти строки можно убрать
CreateMap/pom.xml
Outdated
| </parent> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <artifactId>CreateMap</artifactId> |
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.
Название артефакта должно быть без заглавных букв. Используй маленькие буквы и дефисы
| public static List<Point> listOfSpawn; | ||
|
|
||
|
|
||
| public CreateMap(int height, int width) { |
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.
Не стоит инициализировать статические поля параметрами конструктора
|
|
||
|
|
||
| //задаем радиус видимости в зависимости от количества ботов | ||
| public int getView_radius() { |
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.
ViewRadius стоит сделать побольше. Посмотри, пож, какие значения используются в текущих картах в директории maps/
| } | ||
|
|
||
| //задаем радиус майнинга монет в зависимости от количества ботов | ||
| public int getMining_radius() { |
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.
В название метода закралось нижнее подчеркивание, стоит убрать
| @@ -0,0 +1,25 @@ | |||
| map_size 6 10 | |||
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.
Это слишком маленькие карты, их стоит сделать покрупнее. Для примерного понимания размеров смотри текущие карты
nypi
left a comment
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.
Поправь, пожалуйста, замечания по коммитам
Привет! Я Жижин Алексей. Я выполнял задание итогового проекта по генерации карт