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
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
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
Fan-Wu Yang
8d87da6206
fixed java doc issues on my side #story[1092]
2017-08-15 22:44:56 +12:00
Fan-Wu Yang
a4e1dfb3d7
Fixed import that was messing up the build #story[1092]
2017-08-15 20:46:10 +12:00
fjc40
dc4610d6eb
Fixed sparkline not updating.
...
#story[1095]
2017-08-15 18:41:28 +12:00
fjc40
5ae8393126
Fixed null pointer exception when a boat finishes the race.
...
Boats now default to have position (0, 0).
Added mark rounding data to single player race.xml
2017-08-15 17:13:12 +12:00
fjc40
3a0bd10a57
Merge remote-tracking branch 'origin/master' into story_61
...
# Conflicts:
# racevisionGame/src/main/java/mock/model/MockRace.java
# racevisionGame/src/main/java/mock/model/commandFactory/CommandFactory.java
# racevisionGame/src/main/java/visualiser/gameController/ControllerClient.java
# racevisionGame/src/main/java/visualiser/gameController/ControllerServer.java
# racevisionGame/src/main/resources/visualiser/scenes/race.fxml
2017-08-15 14:49:58 +12:00
cbt24
9ca50aa66c
Ray casting now only supports distance specification.
...
#story[1100]
2017-08-15 14:26:43 +12:00
cbt24
7d64a43350
Allow collision checking to provide collision parameters to ray casting method
...
- Added tests for MockBoat collision direction and distance
#story[1100]
2017-08-15 13:47:59 +12:00
cbt24
2fbb96afd7
Created ray casting methods for MockBoat and CompoundMark
...
- Added ColliderRegistry to Race
- Added collision triggering to RaceLogic
- Created basic collision handlers for MockBoat and CompoundMark
2017-08-15 12:57:26 +12:00
hba56
1bdf80417d
javadoc
...
#story[1087]
2017-08-14 12:14:55 +12:00
Fan-Wu Yang
a5b21799d3
Fixed java doc issue #story[1092]
2017-08-14 04:10:24 +12:00
Fan-Wu Yang
ac42c07c69
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/visualiser/app/VisualiserInput.java
# racevisionGame/src/main/java/visualiser/model/VisualiserRace.java
2017-08-14 03:54:02 +12:00
Fan-Wu Yang
b5e414f97a
Made all the model classes extend off the schema xml classes for race, and made xml builder, validator and reader utility class.
...
#story[1092]
2017-08-14 03:47:42 +12:00
fjc40
7366aba5ec
Added empty data sources, to be used by VisualiserRace.
...
Created FrameRateTracker which can be used to track framerate.
Updated RequestToJoinEnum and JoinAcceptanceEnum to match the agreed connection API.
Added AssignPlayerBoat message, which is used internally on the client to assign the player a source ID once they have connected.
Fixed some race conditions in the MessageRouter.
Updated ConnectionAcceptor.CheckClientConnection to wait slightly longer before removing connection (there was a slight race condition before).
Race no longer has a reference to LatestMessages. LatestMessages no longer has specific messages types in it.
Created RaceState class, which contains the state that is shared between VisualiserRaceState and MockRaceState (currently only used on visualiser).
Split VisualiserRace into VisualiserRaceState and VisualiserRaceService.
Added the VisualiserRace commands (BoatLocatonCommand, RaceStatusCommand, etc...).
Slightly increased the preferred width of race.fxml table columns.
issues #27 #37 #35
#story[1095]
2017-08-14 00:53:05 +12:00
Fan-Wu Yang
70d5447e88
Moving stuff from school pc to home
2017-08-13 23:03:16 +12:00
Fan-Wu Yang
8999cddf8b
Pre merge commit
2017-08-13 22:16:16 +12:00
hba56
2acc36225e
Fix for placement of invis gates and checks that boats pass through these gates
...
-see wiki on rounding
#story[1101]
2017-08-13 18:11:53 +12:00
hba56
f386a4b989
added checks for gates and moved second rounding check to be in line with the next mark to move towards
...
#story[1101]
2017-08-12 22:27:27 +12:00
hba56
d70a711a3d
Merge branch 'master' into story68
...
-updated port and starboard boat checks
-added gps method to check if on correct side of a line
-updated pos check method to make boats round marks with the new tech
# Conflicts:
# racevisionGame/src/main/java/mock/app/ConnectionAcceptor.java
# racevisionGame/src/main/java/mock/app/Event.java
# racevisionGame/src/main/java/mock/model/commandFactory/TackGybeCommand.java
# racevisionGame/src/main/java/mock/model/commandFactory/VMGCommand.java
2017-08-12 03:26:28 +12:00
fjc40
6e5fb62880
Added REQUEST_RECEIVED and DECLINED to ConnnectionStateEnum.
...
#story[1095]
2017-08-12 01:05:45 +12:00
fjc40
b625b6ab05
XMLReader.readXMLFileToString no longer throws a Transformer exception.
2017-08-11 22:38:39 +12:00
Joseph Gardner
d8628b4289
Boats now start the race with sails out. #story[1098]
2017-08-10 13:25:57 +12:00
fjc40
7cc39abe57
WIP. Probably need to cherry pick stuff out of here.
...
Added ClientConnection and server-side handshake.
Added MessageSerialiser and Deserialiser.
#story[1095]
2017-08-10 12:13:40 +12:00
Joseph Gardner
1302769a50
Merge branch 'Development' into story_64_sails
...
# Conflicts:
# racevisionGame/src/main/java/mock/model/commandFactory/CommandFactory.java
# racevisionGame/src/main/java/visualiser/model/ResizableRaceCanvas.java
# racevisionGame/src/test/java/mock/model/MockBoatTest.java
2017-08-10 11:56:09 +12:00
Joseph
41d09f587e
Merge branch 'master' into story_64_sails
...
# Conflicts:
# racevisionGame/src/main/java/visualiser/gameController/Keys/ControlKey.java
# racevisionGame/src/main/java/visualiser/gameController/Keys/SailsToggleKey.java
# racevisionGame/src/main/java/visualiser/gameController/Keys/VMGKey.java
# racevisionGame/src/main/java/visualiser/model/ResizableRaceCanvas.java
2017-08-10 08:58:43 +12:00
hba56
e53d72f24b
compound marks now can give the mark they have that needs to be rounded this is used to draw the line around the correct mark
...
#story[1101]
2017-08-09 23:25:42 +12:00
hba56
e2605c3c7c
Merge remote-tracking branch 'remotes/origin/story68' into Development
2017-08-08 23:29:57 +12:00
zwu18
53c9192130
Merge branch 'CommandFactory' into Development
...
# Conflicts:
# racevisionGame/src/main/java/visualiser/gameController/ControllerServer.java
2017-08-08 02:52:29 +12:00
Connor Taylor-Brown
8ee4e84236
Merge remote-tracking branch 'remotes/origin/story63' into Development
...
# Conflicts:
# racevisionGame/src/main/java/mock/model/MockBoat.java
# racevisionGame/src/main/java/mock/model/MockRace.java
2017-08-07 15:02:13 +12:00
Joseph Gardner
f6cdf66bfe
Sails can be toggled on the visualiser and the rotate sails button rotates the sail visually. #story[1098]
2017-08-07 15:01:16 +12:00
hba56
62752c142a
building blocks for drawing the race line around the course
...
#story[1087]
2017-08-07 12:47:55 +12:00
hba56
747c31b948
Merge remote-tracking branch 'remotes/origin/story68' into Development
2017-08-07 12:29:56 +12:00
Jessica Syder
7c5670f8c2
Sails are displayed on first boat in a race. Optimised imports.
...
- Implemented drawSails method
- Sail position is displayed and updated using a boat's heading
- Sails conform to 'Points of sail'
- Javadoc'd new method and tidied up existing
- Sped up track point frequency (visualiserBoat class)
- Optimised imports (any other classes changed)
- A lot of canvas drawing and sail rotating issues were discovered and eventually overcome along the way. Using a sail image to draw and rotate on the existing canvas rather than a JavaFX shape on a new canvas was the final decision.
#story[1098]
2017-08-07 12:20:52 +12:00
hba56
950a801d16
rounding fix for the xml
...
#story[1087]
2017-08-07 12:16:37 +12:00
zwu18
3d417c3a40
Merge branch 'story63' into CommandFactory
...
# Conflicts:
# racevisionGame/src/main/java/mock/model/MockRace.java
# racevisionGame/src/main/java/mock/model/RaceLogic.java
# racevisionGame/src/main/java/mock/model/RaceState.java
# racevisionGame/src/main/java/mock/model/commandFactory/CommandFactory.java
# racevisionGame/src/main/java/mock/model/commandFactory/VMGCommand.java
# racevisionGame/src/main/java/visualiser/gameController/ControllerServer.java
2017-08-06 13:48:41 +12:00
hba56
be8b0e672d
Updated the xml reader to pull in the rounding type of the compound marks and set each mark with that value
...
#story[1101]
2017-08-04 22:01:21 +12:00
zwu18
6e699f7037
Merge branch 'RaceFactory' into CommandFactory
2017-08-04 03:00:31 +12:00
hba56
f212414bd9
Added in a new basis for boats to round marks, gave mockboats a status to say how far through a rounding they are and made a method in GPScoordinate public so it can be used to calculate intersections.
...
This branch will not run the game any more as boats can't move on to the next leg until they can be controlled by the user.
#story[1087]
2017-08-03 13:27:00 +12:00
Connor Taylor-Brown
c8621a7be5
Merge branch 'RaceFactory' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into RaceFactory
2017-08-03 09:01:27 +12:00
Fan-Wu Yang
4e8d4f2433
Created Schema for Race xml's and generated classes for reading xml with xjc, made the RaceXMLReader read Corner classes in as well as making a corner class #story[1092]
2017-08-03 02:42:33 +12:00
Connor Taylor-Brown
2672c2b13b
Separated RaceLogic from MockRace
...
- MockRace satisfies refactor requirement for RaceState
- VisualiserRace directly implements Runnable to remove method from MockRace
#story[1094]
2017-08-03 00:32:17 +12:00
zwu18
b581b01a44
Merge branch 'RaceFactory' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into RaceFactory
...
# Conflicts:
# racevisionGame/src/main/java/mock/model/MockRace.java
2017-08-03 00:28:44 +12:00
zwu18
ad61dc6bce
Implemented runCommand method in VMGCommand and TackGybeCommand classes. Both classes currently rely on the MockRace class so changes will be required when MockRace is refactored.
...
#story[1097]
2017-08-03 00:22:46 +12:00
Connor Taylor-Brown
0466292bd0
Partially removed VMG optimisation, separated server-specific functionality
...
from MockRace into RaceServer.
#story[1094]
2017-08-02 23:39:13 +12:00
Joseph Gardner
27cf0e1539
Started splitting MockRace into RaceLogic and RaceState. #refactor #story[1094]
2017-08-02 16:31:55 +12:00