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

nearest enemy detection implemented with tests #85

Merged
merged 1 commit into from
May 13, 2020

Conversation

rahulv73039
Copy link
Contributor

@rahulv73039 rahulv73039 commented May 12, 2020

Description: (changed OnDetect() method to enable tower to detect nearest enemy and attack on it and added test to check it)

Issue: Fixes #76 #81 (fixed the TowerAttackEnemies() in battletest.cs by changing waiting time to 1.0f (for less than 1.0f test not passed))

Steps to test:

  1. Added test TowerAttacksNearestEnemy() to check near enemy detection.

@mayant15 mayant15 merged commit b037dca into gamedev-iitk:master May 13, 2020
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.

Ranged towers should attack the nearest enemy first
2 participants