Commit Graph

12 Commits

Author SHA1 Message Date
Haoming Yin 0ab2e7881f Fixed fileParser in order to read time scale in decimal
- json-simple can read either long or double. Updated getScaleTime to make it capable to read a decimal number.

#fix #story[5]
2017-03-08 14:13:23 +13:00
Haoming Yin 2adf39ee43 Merge remote-tracking branch 'origin/master' 2017-03-08 13:33:22 +13:00
Haoming Yin 2b464d16f9 Fixed some bugs
/#pair[hyi25, mra106]
2017-03-08 13:31:44 +13:00
Michael Rausch bc6762d2dd Moved boat velocity to starting list
Tags: #fix
2017-03-08 13:28:00 +13:00
Michael Rausch ab1445f1c2 Race events now display the boats heading and direction
- The boats velocity is being read from the config file
- The event text is now being printed when the leg starts #fix

Tags: #story[7] #implement
2017-03-08 12:31:31 +13:00
Haoming Yin 78dea7daac 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
2017-03-07 21:30:48 +13:00
Haoming Yin 6ce9674e64 Added method to calculate distance travelled given velocity
- added getDistanceTravelled(velocity) to calculate how far a boat has travelled
- added startTime for calculating time elapse between start point and enquiry point

#story[6]
2017-03-07 00:25:10 +13:00
Michael Rausch 9b1d90d2bf Added a class for the marker, and added documentation
- Added documentation for the Race class
- Added a class for the Marker instead of just storing the name of the marker in a string

Tags: #docs #implement #story[4]
2017-03-06 19:31:25 +13:00
Michael Rausch 9453307fd4 Implemented leg class and added legs to the race
- #implement
2017-03-06 17:56:07 +13:00
Michael Rausch 5492ace1a3 Display the boats competing in the race
- Moved displayStartingBoats() and displayFinishingOrder() into the Race class
- Display the competing boats when the application starts

- #implement
2017-03-04 19:13:01 +13:00
Michael Rausch 6702d24fd5 Display the order the boats finished in
- Added a function in the App class to display the order in which the boats finished the race

 #implement
2017-03-03 18:39:15 +13:00
Michael Rausch 33994bd3e4 Implemented 'Race' class
- Boats can be added to a race
- calling getFinishedBoats() will return a list of boats in the order that they finished
2017-03-03 18:06:51 +13:00