Skip to content

Added ability to change player type - #1

Open
FedotSoldier wants to merge 13 commits into
masterfrom
fedotsoldier
Open

Added ability to change player type#1
FedotSoldier wants to merge 13 commits into
masterfrom
fedotsoldier

Conversation

@FedotSoldier

@FedotSoldier FedotSoldier commented Apr 7, 2019

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread nb-configuration.xml Outdated
Comment thread src/main/java/aunmag/shooter/game/client/Player.kt Outdated
Comment thread .gitignore Outdated
@Aunmag

Aunmag commented Apr 11, 2019

Copy link
Copy Markdown
Owner

Лучше разделять каждую фичу отдельным реквестом. В данном случае добавление нового типа персонажа и типа оружия - немного разное.

Comment thread src/main/java/aunmag/shooter/game/ai/Ai.java Outdated
Comment thread src/main/java/aunmag/shooter/game/client/Player.kt Outdated
Comment thread src/main/java/aunmag/shooter/game/client/states/Game.kt Outdated
Comment thread src/main/java/aunmag/shooter/game/client/states/ScenarioStatus.java Outdated
Comment thread src/main/java/aunmag/shooter/game/environment/actor/Actor.java Outdated
Comment thread src/main/java/aunmag/shooter/game/ux/Blackout.java Outdated
Changed the mechanism of player choice
Various small innovations
# Conflicts:
#	src/main/java/aunmag/shooter/game/ai/Ai.java
#	src/main/java/aunmag/shooter/game/client/Player.kt
#	src/main/java/aunmag/shooter/game/client/player/Blackout.java
#	src/main/java/aunmag/shooter/game/client/states/Game.kt
#	src/main/java/aunmag/shooter/game/client/states/Pause.kt
#	src/main/java/aunmag/shooter/game/environment/actor/ActorType.java

!Actor change does not work!
Comment thread src/main/java/aunmag/shooter/game/environment/actor/Actor.java Outdated
turningTo = null;
}

/* Setters */

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Зачем?

@FedotSoldier FedotSoldier Jun 28, 2019

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ну там же сеттеры по сути. Я и перенес этот комментарий, чтобы он был над ними. Раньше был под ними.
Метод reset не включил под этот комментарий, потому что это общий метод сброса состояния. Неизвестно, что туда ещё добавится. А те методы, над которыми я этот комментарий перенес типичные сеттеры - конкретное поле устанавливается в конкретное значение

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

walkForward не принимает ведь аргументов, это не сеттер.

Comment thread src/main/java/aunmag/shooter/game/environment/actor/ActorType.java Outdated
Comment thread src/main/java/aunmag/shooter/game/environment/actor/Actor.java Outdated
Comment thread src/main/java/aunmag/shooter/game/client/states/Pause.kt Outdated
Comment thread src/main/java/aunmag/shooter/game/environment/actor/ActorType.java Outdated
10 -> WeaponType.saiga12k
11 -> WeaponType.pkm
12 -> WeaponType.pkpPecheneg
3 -> WeaponType.coltSingleActionArmy

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Изначально планировалось что бы не первой волне были только пистолеты, на второй двуствольные ружья, далее ПП, и так далее

@FedotSoldier FedotSoldier Jun 29, 2019

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Сейчас все твои оружия могут выпасть только на тех же волнах как раньше. Плюс, к тем, которые могут выпасть на первой волне, добавляется револьвер.

Comment thread .gitignore
src/main/resources/**/*.png
src/main/resources/**/*.ogg
src/main/resources/**/*.fnt

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Лишнее

Comment thread nbactions.xml Outdated
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Лишнее

@Aunmag
Aunmag force-pushed the master branch 2 times, most recently from aeb12b9 to f17b38a Compare July 6, 2019 13:08
# Conflicts:
#	src/main/java/aunmag/shooter/game/ai/strategies/Strategy.java
#	src/main/java/aunmag/shooter/game/client/states/Pause.kt
#	src/main/java/aunmag/shooter/game/environment/actor/Actor.java
#	src/main/java/aunmag/shooter/game/scenarios/ScenarioEncircling.kt
# Conflicts:
#	src/main/java/aunmag/shooter/game/ai/strategies/Strategy.java
#	src/main/java/aunmag/shooter/game/client/states/Pause.kt
#	src/main/java/aunmag/shooter/game/environment/actor/Actor.java
#	src/main/java/aunmag/shooter/game/scenarios/ScenarioEncircling.kt
Player choice implemented in non Kotlin version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants