Added function to generate events for race

- added generateEvents() for creating event into a priority queue
- added iterateEvents() to pull out events when time passing
- changed default velocity to 70 just for testing. Pls change it back after testing

#story[5] #implement
This commit is contained in:
Haoming Yin
2017-03-07 21:30:48 +13:00
parent 17fbb1212d
commit 78dea7daac
2 changed files with 77 additions and 23 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ public class Boat
{
// The name of the team, this is also the name of the boat
private String teamName = null;
private float velocity = 0;
private float velocity = 70; // please set this one to a reasonable num!!!!!, i set it just for testing ;)
public Boat(String teamName) {
this.teamName = teamName;