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

Map selection #213

Closed
ozkriff opened this issue Aug 13, 2016 · 3 comments
Closed

Map selection #213

ozkriff opened this issue Aug 13, 2016 · 3 comments
Labels

Comments

@ozkriff
Copy link
Owner

@ozkriff ozkriff commented Aug 13, 2016

Сейчас у меня только одна карта, этого мало. Пускай захардкоженные, но карт должно быть несколько.


Right now i have only one hardcoded map. It`s extremely inconvinient, i need ability to switch between maps (it's ok if they are still hardcoded for now) quickly.

@ozkriff ozkriff added the t-feature label Aug 13, 2016
@ozkriff ozkriff mentioned this issue Sep 8, 2016
@ozkriff ozkriff removed the s-in-progress label Sep 8, 2016
ozkriff added a commit that referenced this issue Sep 17, 2016
@ozkriff
Copy link
Owner Author

@ozkriff ozkriff commented Sep 19, 2016

Для начала пришлось сделать поддержку покупки войск (#208), потому что захардкодить изначальную армию как часть карты (с учетом тумана войны и всего такого) пока что сложно.


Reinforcements must be implemented first - it's not possible right now to move initial unit creation into InternalState because it will break Fog of War filter =( .

@ozkriff
Copy link
Owner Author

@ozkriff ozkriff commented Sep 19, 2016

Покупка войск сделана, изначальные армии игроков убраны.


Reinforcements are implemented!

@ozkriff
Copy link
Owner Author

@ozkriff ozkriff commented Sep 19, 2016

Добавил в core::Options поле с названием текущей карты и протянул это название до конструкторов всех нужных состояний.

Добавил в главное меню кнопку-переключатель с названием текущей карты. Уродский UI, но пока пойдет.

Карты пока всего две и обе захардкожены, но это тоже временно.


Added map_name filed to core::Options struct and drugged it into all FoW's and State's.

Added button with current map name to main menu. It's awful UI, but I'll leave as it is for now.

Maps are hardcoded for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.