Enable Bullet Firing: Modified both the PlayerController and EnemyCon… #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…troller classes to enable bullet firing for the player ship and all types of enemy ships. This involves implementing the logic for bullet firing within these classes.
Header File Modification: In the PlayerController.h header file, forward declaration of the PlayerView class was added to resolve a circular dependency issue between PlayerController and PlayerView classes. This ensures that the classes can reference each other without causing compilation errors due to circular dependency.
Code Reorganization: No major changes were made to the overall structure of the code. However, the bullet firing logic was integrated into the existing functions of the PlayerController and EnemyController classes, ensuring that both player and enemy ships can fire bullets without drastically altering the code's structure.
Testing and Validation: After implementing the changes, the code was tested to ensure that both player and enemy ships can successfully fire bullets as intended. This involved validating the behavior of bullet firing in various scenarios, such as player input and enemy actions.