Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes

How did you guys implement you car classes into your main classes and what kind of methods do you have for them?

asked in CSC305 Fall 2020 by (8 points)

2 Answers

+4 votes

We have classes for both the enemy car and player car. Then in the main class you can create instances of them and have them interact. We have move methods and an intersect method to test if the cars are intersecting

answered by (8 points)
+4 votes

We have classes for enemy and player cars that are inheriting methods from an abstract class that creates them all. We have methods that move the enemy cars and see if any of the enemy cars and player cars interact.

answered by (8 points)
...