Joseph Gardner
37fe7389ff
Rounding marks works.
2017-08-17 13:55:33 +12:00
David Wu
5a188f0582
Merge branch 'master' into new_issue#19
2017-08-17 13:52:04 +12:00
Hamish Ball
d2f9bfedcb
Merge branch 'issue_18_track_alpha' into 'master'
...
Issue 18 track alpha
This should resolve #18 .
Track point system is now a line, and updated more frequently.
Line fades over time.
The boat wake is also longer, and has a black dot at the end.
See merge request !28
2017-08-17 13:50:44 +12:00
Joseph Gardner
610aa96241
Merge branch 'MapWindRotation' into 'master'
...
Map wind rotation
Note: we'd like to generate a realistic course layout, that can vary from race to race (but not within a race, for now.) The generated layout must be sent through the API in the format given by the race.xml section of the AC35 Streaming Data Interface Specification. The AC35 Protocol (sections 31.4 and 31.5) specifies the requirements for a course:
* First leg of the course (from start line to first mark) must be a reaching leg
* Next legs are windward/leeward, and boats complete either two or three laps of this section
* Final leg to finish line may be a reaching leg
* A boat should take around 25 minutes to complete the course in the wind conditions at the start of the race (AC35 protocol, section 31.5)
You should assume that the windward/leeward marks and start/finish lines are always compounds of two marks.
Acceptance criteria:
* The layout must be sent over the API in a race.xml message, plus boat location messages for the marks as required, before any other boat location messages are sent.
* Each mark must be defined using boat "SourceID"s (see definition of race.xml) so their positions can be adjusted later.
* The course must meet the requirements given in the AC35 Protocol.
* The course limits should be set to clear all marks by at least several boat-lengths.
* The entire race area within the limits must be on the water.
See merge request !22
2017-08-17 13:50:21 +12:00
Hamish Ball
2edb6b5249
Merge branch 'issue#40' into 'master'
...
Issue#40
See merge request !30
2017-08-17 13:49:58 +12:00
David Wu
c08bafa566
Fixed most of issue #19 with new master?
2017-08-17 13:49:43 +12:00
fjc40
2656efcb4d
Marks are a bit darker.
...
Wake no longer has circle at end.
2017-08-17 13:30:10 +12:00
Fan-Wu Yang
2e9c6fe593
Merged most recent master in, #story[1092]
2017-08-17 13:23:55 +12:00
hba56
02ab0e8a00
added javadoc
2017-08-17 13:16:47 +12:00
hba56
3cf50c56f8
added a refresh for the info table so no new values are shown when the game is in full screen
2017-08-17 13:15:33 +12:00
Joseph Gardner
a50d460222
Merged master.
2017-08-17 13:02:14 +12:00
fjc40
0f58270c10
Merge branch 'master' into issue_18_track_alpha
...
# Conflicts:
# racevisionGame/src/main/java/visualiser/model/VisualiserRaceState.java
2017-08-17 13:00:13 +12:00
Fan-Wu Yang
7546c65893
Merge branch 'master' into MapWindRotation
...
# Conflicts:
# racevisionGame/src/main/java/shared/model/CompoundMark.java
# racevisionGame/src/main/java/shared/model/Mark.java
2017-08-17 12:59:54 +12:00
Joseph Gardner
20c9870fea
Merge branch 'master' into story_64_sails
...
# Conflicts:
# racevisionGame/src/main/java/shared/model/Boat.java
# racevisionGame/src/main/java/visualiser/Commands/VisualiserRaceCommands/BoatLocationCommand.java
2017-08-17 12:59:25 +12:00
David Wu
fa5992bfb2
added App app to app.
2017-08-17 12:58:05 +12:00
fjc40
62f400b924
Trackpoint line color fades out.
2017-08-17 12:56:11 +12:00
David Wu
6bc81f566e
Issue 19 changes.
2017-08-17 12:50:41 +12:00
Joseph Gardner
a3fe57ed5a
Removed print statement. #story[1092]
2017-08-17 12:27:59 +12:00
fjc40
fa26abe10c
Minor tidy.
2017-08-17 12:18:17 +12:00
Joseph Gardner
4cf8846cda
Map wind rotation works with multiplayer xml. #story[1092]
2017-08-17 12:17:45 +12:00
hwball
86d94ef27e
javadoc fix
2017-08-17 11:58:13 +12:00
hwball
df2b674b94
update scale for table displaying
2017-08-17 11:51:33 +12:00
Connor Taylor-Brown
4b3cc8e126
Created ack number generator for use by multiple services
...
#story[1100]
2017-08-17 11:47:54 +12:00
Joseph Gardner
1e7ba8cd51
Merge branch 'master' into MapWindRotation
...
# Conflicts:
# racevisionGame/src/main/java/mock/app/Event.java
# racevisionGame/src/main/java/mock/model/MockRace.java
# racevisionGame/src/main/java/mock/model/commandFactory/CommandFactory.java
# racevisionGame/src/main/java/shared/dataInput/RaceXMLReader.java
# racevisionGame/src/main/java/shared/model/CompoundMark.java
# racevisionGame/src/main/java/shared/model/Mark.java
# racevisionGame/src/main/java/visualiser/Controllers/ConnectionController.java
# racevisionGame/src/main/java/visualiser/Controllers/HostController.java
# racevisionGame/src/main/java/visualiser/app/VisualiserInput.java
# racevisionGame/src/main/java/visualiser/gameController/ControllerServer.java
# racevisionGame/src/main/java/visualiser/model/VisualiserRace.java
2017-08-17 11:46:09 +12:00
Joseph
d7e0bfa86c
Trackpoints are only shown for the player's boat. #story[1098]
2017-08-17 10:13:30 +12:00
Joseph
47fc55245c
Merged master.
2017-08-17 09:27:41 +12:00
Joseph
f60809bdd4
Merge branch 'master' into story_64_sails
...
# Conflicts:
# racevisionGame/src/main/java/mock/app/MockOutput.java
# racevisionGame/src/main/java/mock/model/MockRace.java
# racevisionGame/src/main/java/mock/model/commandFactory/CommandFactory.java
# racevisionGame/src/main/java/network/MessageDecoders/BoatActionDecoder.java
# racevisionGame/src/main/java/network/MessageDecoders/BoatLocationDecoder.java
# racevisionGame/src/main/java/visualiser/app/VisualiserInput.java
# racevisionGame/src/main/java/visualiser/gameController/ControllerServer.java
# racevisionGame/src/main/java/visualiser/model/ResizableRaceCanvas.java
# racevisionGame/src/main/java/visualiser/model/VisualiserRace.java
# racevisionGame/src/main/resources/visualiser/scenes/connect.fxml
# racevisionGame/src/main/resources/visualiser/scenes/lobby.fxml
# racevisionGame/src/test/java/mock/model/MockRaceTest.java
# racevisionGame/src/test/java/network/Utils/AC35UnitConverterTest.java
# racevisionGame/src/test/java/network/XMLMessageEncoderTest.java
2017-08-17 09:13:49 +12:00
zwu18
109b291973
Merged issue #20 fix and splash screen into development.
2017-08-17 01:36:55 +12:00
zwu18
317582aae8
Merge branch 'issue#20fix' into Development
2017-08-17 01:35:33 +12:00
zwu18
4e8b7d3b5a
Merge remote-tracking branch 'origin/master' into issue#20fix
2017-08-17 01:30:43 +12:00
zwu18
8759ac070e
Merge remote-tracking branch 'origin/splashScreen' into issue#20fix
2017-08-17 01:30:38 +12:00
Connor Taylor-Brown
f8150ef449
Added YachtEvent message with encoder and decoder
...
- Updated Encoder and Decoder factories for the new message type
- Added an enum for handling yacht event types
#story[1100]
2017-08-17 01:10:55 +12:00
hba56
ee0cc4b704
Merge branch 'issue#40' into Development
2017-08-16 22:41:49 +12:00
fjc40
114c18763b
Reduced track point period to 1000ms.
...
issue #18
2017-08-16 19:44:42 +12:00
fjc40
20055b1883
Removed redunant calls in VisualiserRaceState.initialiseBoats().
...
Slightly refactored ResizableRaceCanvas - removed a redundant drawPoint() function, functions which alter the gc stroke call save/restore.
Text is drawn black, at 20pts.
The drawBoats() function: instead of drawing everything for each boat, one boat at a time, it draws the track points for all boats, then wake for all boats, etc..., to have better layering.
issue #18
2017-08-16 18:10:30 +12:00
cbt24
f7d0e9d466
Boats bounce during collision if pointing into collision
...
#story[1100]
2017-08-16 17:55:33 +12:00
cbt24
eaa0d2e82b
Boats bounce away from marks.
...
- Changed onCollisionEnter signature to pass boat info
#story[1100]
2017-08-16 17:22:08 +12:00
cbt24
8113867576
Bubbles collision events to RaceLogic
...
- ColliderRegistry collects and forwards all Collision events
- RaceLogic observes the ColliderRegistry of its single Race instance
#story[1100]
2017-08-16 16:56:20 +12:00
fjc40
f1e41d5d8f
Merge branch 'master' into issue_18_trackpoint
2017-08-16 16:52:32 +12:00
cbt24
79f3c41d45
Moved generic ray casting to Collider abstract class
...
- Boat is now collider
- Collider subclasses specify their own collision ray and collision handler
#story[1100]
2017-08-16 16:21:55 +12:00
cbt24
8498701091
Removed commented-out file from master
2017-08-16 16:08:38 +12:00
cbt24
f44929f376
Spun off Locatable interface to make collision code more reusable
...
#story[1100]
2017-08-16 16:05:25 +12:00
cbt24
ce14e93404
Removed CI-breaking docstring
2017-08-16 15:17:15 +12:00
cbt24
f0d750cae1
Merge remote-tracking branch 'remotes/origin/master' into story66-collision
...
# Conflicts:
# racevisionGame/src/main/java/mock/model/MockBoat.java
# racevisionGame/src/main/java/mock/model/RaceLogic.java
# racevisionGame/src/main/java/shared/model/CompoundMark.java
# racevisionGame/src/main/java/shared/model/Race.java
# racevisionGame/src/test/java/mock/model/MockBoatTest.java
2017-08-16 15:09:18 +12:00
cbt24
d63641c1e2
Cherry-picked multiple changes from master
2017-08-16 14:54:55 +12:00
hba56
fdd0b30a51
Added the ability to hide and show info table with a key press
...
-the wind arrow also scales with the new size of the screen
2017-08-16 02:04:07 +12:00
fjc40
85e703cba5
RaceController/info table now makes a copy of the boat list, to avoid race conditions.
...
#story[1095]
2017-08-15 23:10:32 +12:00
Fan-Wu Yang
9f7c5d8c0c
Fixed other javadocs that were causing the build to fail #story[1092]
2017-08-15 22:48:35 +12:00
Fan-Wu Yang
8d87da6206
fixed java doc issues on my side #story[1092]
2017-08-15 22:44:56 +12:00
fjc40
bcb6b79f8d
Fixed player boat not being highlighted.
...
#story[1095]
2017-08-15 22:41:43 +12:00