-
Notifications
You must be signed in to change notification settings - Fork 2
review #26
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
base: final
Are you sure you want to change the base?
Conversation
сам server::worker, обрабатывающий соединения (пока что блокирующий) серверные сущности server::game и server::player менеджеры-потомки server::manager
# Conflicts: # CMakeLists.txt
# Conflicts: # CMakeLists.txt # cmake/Modules/FindSFML.cmake
# Conflicts: # CMakeLists.txt # src/GameState.cpp # src/GameState.h
# Conflicts: # CMakeLists.txt # src/Game.cpp # src/GameState.cpp # src/GameState.h # src/Map.cpp
# Conflicts: # CMakeLists.txt # src/Game.cpp # src/GameContext.h # src/GameState.cpp # src/GameState.h # src/Multiplayer/ConnectionFacade/ClientConnectionFacade.h # src/Multiplayer/Entities/Player.h # src/Multiplayer/Manager/PlayerManager.cpp # src/Multiplayer/Master.h # src/Server/Client.cpp # src/Server/Entities.cpp # src/Server/Manager.h # src/Server/Server.cpp
no hardcoded constants in server
# Conflicts: # src/GameState.cpp
|
|
||
| std::shared_ptr<Bullet> TowerLvlOne::makeBullet() { | ||
| double radAngle = angle_ * M_PI / 180 - M_PI / 2; | ||
| return std::make_shared<BulletLvlOne>(position_ + sf::Vector2f(20 * cos(radAngle), 20 * sin(radAngle)), angle_, target_); |
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.
а что означает 20?
| } | ||
|
|
||
| int Barracks::upgrade() { | ||
| if (lvl_ >= 2) { |
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.
волшебная двойка..
| Game::Game() : window({1000, 1000}, "Tower Defense", sf::Style::Titlebar | | ||
| sf::Style::Default, sf::ContextSettings{0, 0, 8, 1, 1, 0, false}), | ||
| context(window, font, textureHolder, fontHolder, cursor), | ||
| Game::Game() : window({1216, 768}, "Tower Defense", sf::Style::Titlebar | |
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.
почему такой интересный размер?)
| } | ||
| }); | ||
|
|
||
| std::cout << "12" << std::endl; |
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.
это у вас для отладки крашей было?
| } | ||
|
|
||
| bool Textbox::enterText(sf::Uint32 unicode) { | ||
| if(unicode == 8) |
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.
неочевидно..
No description provided.