100 Commits
Author SHA1 Message Date
Connor Taylor-Brown adebe1df96 Merge remote-tracking branch 'origin/master' 2017-09-28 16:35:24 +13:00
Connor Taylor-Brown df95e2b3b1 We fully legit gg no re 2017-09-28 16:35:14 +13:00
Connor Taylor-Brown 0bfe93da06 Merge branch 'master' into story1301-start 2017-09-28 13:20:20 +13:00
Connor Taylor-Brown e90aeccdef Merge branch 'master' into story1301-start 2017-09-28 13:08:25 +13:00
Connor Taylor-Brown 0da840a37e Fixed toggling and application of style
#story[1301]
2017-09-28 11:38:19 +13:00
Connor Taylor-Brown 88d5a60696 Merge branch 'master' into story1301-start
# Conflicts:
#	racevisionGame/src/main/java/visualiser/layout/View3D.java
2017-09-28 11:30:47 +13:00
Connor Taylor-Brown 7e1f6284cc Gave screen and minimap backgrounds uniform colours
#story[1301]
2017-09-27 23:50:49 +13:00
Connor Taylor-Brown 246d6bcc71 CSS now works on startup
#story[1301]
2017-09-27 23:39:17 +13:00
Connor Taylor-Brown f2a0f56cf0 Merge remote-tracking branch 'remotes/origin/boat_speed_issue_54' into ac35_map_boundary 2017-09-27 22:46:53 +13:00
Connor Taylor-Brown 4415a501be Merge remote-tracking branch 'remotes/origin/minimap_crash_first_leg' into ac35_map_boundary 2017-09-27 22:46:31 +13:00
Connor Taylor-Brown 315bb64bb3 Boat on start screen now follows infinite loop
- Removed non-resizable property on TitleController

#story[1301]
2017-09-27 22:37:15 +13:00
Connor Taylor-Brown 73bffb35e3 Removed stutter 2017-09-27 12:15:13 +13:00
Connor Taylor-Brown d6b0fec6d3 Start race in third person by default
- Third person zoom limit has been lowered
- Next mark highlighting and arrow only follows player boat
2017-09-27 12:02:56 +13:00
Connor Taylor Brown 666e9d0ad9 Merge branch 'story_speedometer' into 'master'
Story speedometer

AC's:
-Current speed of boat is displayed on the race UI
-Current placing of boat is displayed

See merge request !62
2017-09-26 17:10:55 +13:00
Connor Taylor-Brown 3007fe1ee5 Everyone has a single email address according to mailmap 2017-09-25 16:57:13 +13:00
Connor Taylor-Brown 8e4f7e8b04 Fixed mailmap 2017-09-25 16:45:15 +13:00
Connor Taylor-Brown 4f229ad01c Implemented basic 3D start screen with no background race
#story[1301]
2017-09-25 00:56:21 +13:00
Connor Taylor-Brown 51413257b2 Modified title screen to use View3D with skybox and ambient lighting
#story[1301]
2017-09-25 00:23:46 +13:00
Connor Taylor Brown 49c08f5687 Merge branch 'story1298_boat_highlight' into 'master'
Story1298 - Boat highlighting

ACs:
- Current players boat is highlighted

See merge request !56
2017-09-22 20:22:18 +12:00
Connor Taylor-Brown 1b4b980081 Exponentially decrease speed as boat loses health
- Boat halves in speed after 90% health loss

#story[1291]
2017-09-22 00:49:36 +12:00
Connor Taylor-Brown 16da9e009b Cherry-picked FXML changes from Development
#story[1291]
2017-09-22 00:21:56 +12:00
Connor Taylor-Brown 985f784066 Removed broken stuff from FXML after merge 2017-09-21 23:41:18 +12:00
Connor Taylor-Brown dc9445a8a6 Merge branch 'master' into story1291-hp
# Conflicts:
#	racevisionGame/src/main/resources/visualiser/scenes/newRaceView.fxml
2017-09-21 23:40:46 +12:00
Connor Taylor-Brown 5473fde731 Merge remote-tracking branch 'remotes/origin/master' into story1291-hp 2017-09-21 12:49:27 +12:00
Connor Taylor-Brown 6c78e5d0b5 Tomato now depletes as expected
#story[1291]
2017-09-21 12:10:33 +12:00
Connor Taylor-Brown 10008f5452 Depleting tomato now watches player health
- [BUG] Tomato fills up instead of depleting

#story[1291]
2017-09-21 01:42:53 +12:00
Connor Taylor-Brown b0bc7f50f2 Updated FXMLs to add depleting tomato
- Tab view now contains health column
- BoatStateCommand now fails silently if command is received before race state is set up

#story[1291]
2017-09-20 18:22:14 +12:00
Connor Taylor-Brown 23040ecff4 Created separate listeners for all boats' and player boat health
#story[1291]
2017-09-20 14:34:22 +12:00
Connor Taylor-Brown 0d89574c1f RaceViewController listens to health changes on the local player's boat
#story[1291]
2017-09-20 14:29:31 +12:00
Connor Taylor-Brown 7eb59cdcfc Allowed fractional health deductions per frame
- Fixed boundary penalty system

#story[1291]
2017-09-20 14:18:39 +12:00
Connor Taylor-Brown 50d5dd02a2 BoatState message can be received from mock by visualiser
- Basic penalties have been made for out of bounds and collisions
- RaceServer packages and sends BoatState messages for each boat
- ServerConnection routes BoatState messages instead of dropping by default
- VisualiserRaceCommandFactory produces BoatStateCommands

#story[1291]
2017-09-20 14:07:50 +12:00
Connor Taylor-Brown a295728e89 Created encoder and decoder for BoatState messages (HP packets)
- Added new MessageType.BOATSTATE enum to support new message type
- Modified EncoderFactory and DecoderFactory to support new enum
- Verify that original and decoded messages match

#story[1291]
2017-09-20 00:52:06 +12:00
Connor Taylor-Brown 8d9624db96 Recovered sails smoothing
- Boat default position is now overridden only by collision command
- Sails command overrides boat velocity

#story[1195]
2017-09-14 23:01:29 +12:00
Connor Taylor-Brown 90c258e9e9 Reset collision tag on visualiser boat after displaying collision
- Modified View3D to index subjects rather than shapes by source ID
- Enforced one collision per boat on server to reduce rendering load
- Changed collision radius to less than bounce radius
- Fixed game-breaking null command bug

#story[1195]
2017-09-14 22:36:18 +12:00
cbt24 02b4146fa3 Amended collision effect radius
#story[1195]
2017-09-14 16:24:14 +12:00
cbt24 7d58b05e38 Fixed collision not fading to zero
#story[1195]
2017-09-14 16:23:21 +12:00
cbt24 cdc7b642db Boat now shows a fading collision effect
#story[1195]
2017-09-14 16:22:04 +12:00
Connor Taylor-Brown f2370485a0 RaceController can now set up collision listeners on each boat.
#story[1195]
2017-09-14 12:48:02 +12:00
Connor Taylor-Brown e354320d74 Replaced camera tracking listeners with animation timer
- Documented animation timers and mark arrow

#story[1195]
2017-09-14 12:20:55 +12:00
Connor Taylor-Brown b8c4582d2a Replaced mark arrow listener with animation timer.
#story[1195]
2017-09-14 12:06:47 +12:00
cbt24 de9f4e22eb Direction to mark arrow is now displayed relative to camera
#story[1195]
2017-09-13 16:10:41 +12:00
Connor Taylor-Brown 5f96526fcc Added "arrow" pointing to next mark on third person view
#story[1195]
2017-09-13 15:34:02 +12:00
Connor Taylor-Brown e657a0cc99 Added tracking for angle between third person boat and next mark
#story[1195]
2017-09-13 14:44:18 +12:00
Connor Taylor-Brown 83e696b79e Committed merge-related bug fixes 2017-09-13 13:18:25 +12:00
Connor Taylor-Brown 70bbc89239 Fixed merge-related bugs 2017-09-13 13:12:26 +12:00
Connor Taylor-Brown 0f846f31c3 Merge remote-tracking branch 'origin/storyD-3D' into storyD-3D
# Conflicts:
#	racevisionGame/src/main/java/visualiser/layout/SkyBox.java
2017-09-13 12:28:29 +12:00
Connor Taylor-Brown 963c8a43ad Boats and marks are sized realistically in 3rd person
- Changed SeaSurface to Subject3D to suppress scaling
- Cameras can now be selected through View3D interface

#story[1190]
2017-09-13 12:25:52 +12:00
Connor Taylor-Brown bae428fb3f Recovered a private method used in a test 2017-09-12 17:44:05 +12:00
Connor Taylor-Brown c94e0af69c Removed remaining println statements 2017-09-12 17:35:51 +12:00
Connor Taylor-Brown 01a304efb9 Merge remote-tracking branch 'remotes/origin/master' into storyB-) 2017-09-12 17:23:47 +12:00
Connor Taylor-Brown fbd124e602 Merge branch 'master' into storyB-)
# Conflicts:
#	racevisionGame/src/main/java/shared/model/Constants.java
2017-09-12 15:40:49 +12:00
Connor Taylor-Brown 59bd22c2aa Fixed mark rounding
- Returning mark 2 as mark 1 breaks rounding calculations

#story[1195]
2017-09-12 13:52:29 +12:00
Connor Taylor-Brown 0f316afb3c Added colour indication to next mark
- Colour is swapped with end mark in leg when mark is passed

#story[1195]
2017-09-12 13:36:31 +12:00
Connor Taylor-Brown b902b05e5e Wrote possible fix for issue #50 (Composite command tries to remove non-existent element) 2017-09-12 11:46:57 +12:00
Connor Taylor-Brown d90b161d01 Merge branch 'master' into storyA_sounds
# Conflicts:
#	racevisionGame/src/main/java/mock/model/RaceServer.java
#	racevisionGame/src/main/java/visualiser/Controllers/HostController.java
#	racevisionGame/src/main/java/visualiser/Controllers/MainController.java
#	racevisionGame/src/main/java/visualiser/Controllers/TitleController.java
2017-09-12 11:11:39 +12:00
Connor Taylor Brown 0ea647b9fd Merge branch 'story70' into 'master'
Story70  Merge Request

Acceptance criteria:

Only the player's boat is present (there are no other boats) and no other course elements are present.
Each key function is introduced, and the player given the opportunity to use that (and only) that key, and observe the result.
The practice ends when the final key has been taught.
At least the up/down, tack/gybe, sails in/out keys must be taught.

[manual tests](https://eng-git.canterbury.ac.nz/seng302-2017/team-7/wikis/manual-test:-tutorial-mode)

See merge request !40
2017-09-11 21:42:06 +12:00
Connor Taylor-Brown 5e35cd4195 Removed empty java files 2017-09-11 20:31:20 +12:00
cbt24 70f4a00d12 Scaled down marks and boats to make 3rd person view more realistic
- Added boat and mark annotations to support selection at large camera distance
- Reduced collision radius to 15 m
- Fixed event startup and XML files as race was crashing on start

#story[1296]
2017-09-09 17:09:14 +12:00
cbt24 2508b847b8 Merge branch 'master' into storyD-3D
# Conflicts:
#	racevisionGame/src/main/java/visualiser/Controllers/RaceController.java
#	racevisionGame/src/main/java/visualiser/layout/Subject3D.java
2017-09-09 15:26:33 +12:00
cbt24 643f145407 Added mark radius 3D annotation to improve bird's eye visibility
#story[1261]
2017-09-09 14:44:58 +12:00
Connor Taylor-Brown 93883ee8b7 Added more descriptive documentation to new classes and functionality
#story[1190]
2017-09-08 23:48:47 +12:00
Connor Taylor-Brown 0c9e55093c Set lobby anchor pane to invisible to allow races to start 2017-09-08 17:11:21 +12:00
Connor Taylor-Brown b034a452b6 Fixed problem with race pane registering non-control keys
#story[1190]
2017-09-08 16:30:03 +12:00
Connor Taylor-Brown 68f434b6b6 Bound zooming action to zoom keys
- View3D subject selection is no longer enabled by default
- Added documentation

#story[1190]
2017-09-08 15:49:53 +12:00
Connor Taylor-Brown 1efec06bdc View3D can untrack objects and zoom in different modes
- updateDistance zooms between 0 and infinity
- Camera switches from third person to bird's eye when reaching a set distance
- Only one subject can be tracked at a time

#story[1190]
2017-09-08 14:21:03 +12:00
Connor Taylor-Brown 23eabed3ff View3D tracks selected boat at fixed distance, pitch, and relative yaw
#story[1190]
2017-09-08 12:58:06 +12:00
Connor Taylor-Brown b59eca1a8b Added Subject3D selection to View3D
- Changed how View3D is added to canvasBase to allow events to get through

#story[1190]
2017-09-08 12:43:36 +12:00
Connor Taylor-Brown 54baf4f884 Added scroll-wheel zooming
- Race pane listens to scroll delta and sets View3D distance accordingly
- GPSConverter has more applicable property names for infinite 3D

#story[1190]
2017-09-07 23:22:27 +12:00
cbt24 8c7345a30d Documented command classes
#story[1196]
2017-09-07 17:01:47 +12:00
cbt24 a6db06a82c Boats now reverse smoothly when colliding
- Collision objects specify which boat is colliding
- RaceLogic sets up an observable CollisionCommand when collision bubbles up
- Boats now selectively identify observers of collision

#story[1196]
2017-09-07 16:57:07 +12:00
cbt24 9cba3934ea Sails command now applies acceleration to boat
- Race only has control over speed while Sails command is not in action
- This is governed by a default velocity property on the boat
- Sails command returns control when sails are out and boat is up to speed
- Speed never falls below 0
- Speed never goes above VMG velocity to prevent exploitation

#story[1196]
2017-09-07 14:50:53 +12:00
cbt24 eba70ab2d4 Sails command now listens to race to check if goal velocity is met
#story[1196]
2017-09-07 14:27:20 +12:00
cbt24 b62344261a Merge remote-tracking branch 'remotes/origin/master' into storyB-) 2017-09-07 13:29:23 +12:00
cbt24 844b48a81a Resolved issue #42 - "putting sails out changes boat bearing to face target gate"
#story[1196]
2017-09-07 13:23:56 +12:00
Connor Taylor-Brown e3e61e5b28 Merge remote-tracking branch 'remotes/origin/master' into storyD-3D 2017-09-06 23:51:46 +12:00
Connor Taylor-Brown d89186d8bf Finished playable 3D race with first person camera
- Camera pivot must be manually updated
- GPS coordinates are scaled by an arbitrary amount to make movement visible
- Model has to be flipped 180 degrees to move forward

#story[1261]
2017-09-06 14:36:24 +12:00
cbt24 19f4d0fc06 Added marks back to the race view
#story[1261]
2017-09-05 16:50:26 +12:00
cbt24 05a0614246 Boats now rotate correctly in position rather than about the origin
#story[1261]
2017-09-05 16:02:20 +12:00
cbt24 3ecf203cba Recovered stable rotation of the player's boat
- Uses AnimationTimer rather than listeners
- Reduced pre-start time to speed up testing

#story[1261]
2017-09-05 15:19:04 +12:00
Connor Taylor-Brown c74cc26bf1 Merged with master and changed View3D default background
- Removed sparkline from RaceController

#story[1261]
2017-09-05 12:17:55 +12:00
Connor Taylor-Brown b8c99be201 Merge branch 'master' into storyD-3D
# Conflicts:
#	racevisionGame/src/main/java/visualiser/Controllers/RaceController.java
2017-09-05 00:17:22 +12:00
cbt24 971a061499 View3D within RaceController now tracks boat heading
- Race leaves lobby on Warning status for development
- Latest subject added is used as camera pivot

#story[1261]
2017-09-04 18:51:37 +12:00
Connor Taylor-Brown 0ee448e17d Created wrapper for controlling the position and heading of rendered 3D models.
- Updated View3D to use Subject3D wrappers instead of Shape3D
- Fixed HostController for the new architecture
- Made position and heading observable in VisualiserBoat
- Attached listeners to each VisualiserBoat in RaceController

#story[1261]
2017-09-04 01:27:29 +12:00
Connor Taylor-Brown 368bb8ddb3 Changed reporting plugin settings and specified central repository 2017-09-03 23:35:18 +12:00
Connor Taylor-Brown 42ac733d72 Flush match table on a scheduled rate.
#story[1196]
2017-09-01 11:57:24 +12:00
cbt24 2f8daf757a Added scheduled match list broadcast to MatchBrowser
- Changed MatchTable to map ClientAddress to HostGame
- Send match list as HostedGamesRequest to multicast address (239.0.0.1:4941)

#story[1188]
2017-08-31 17:34:02 +12:00
Connor Taylor-Brown 3cc806dc45 Returned rotation to boat in lobby
#story[1196]
2017-08-31 01:06:33 +12:00
Connor Taylor-Brown fb7bf572d8 Changed View3D add-remove interface to an ObservableList
#story[1196]
2017-08-31 00:59:36 +12:00
Connor Taylor-Brown b6e56d815c ResizableRaceCanvas no longer depends on VisualiserRaceEvent
#story[1196]
2017-08-30 18:52:29 +12:00
Connor Taylor-Brown c2fd5c9bae Changed box to boat mesh
- Mesh needs to be rotated -90 degrees on X
- STL file has been added to assets

#story[1196]
2017-08-30 15:49:20 +12:00
Connor Taylor-Brown cc66d63096 Removed unused shapes list from View3D
#story[1196]
2017-08-30 15:18:08 +12:00
Connor Taylor-Brown bb7eb7cb44 Added adapter interface for PerspectiveCamera frustum and transformations in View3D.
- Tested interface while initialising HostController

#story[1196]
2017-08-30 15:05:08 +12:00
Connor Taylor-Brown e04f199fc7 Merge branch 'story86-3D' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story86-3D 2017-08-30 13:57:35 +12:00
Connor Taylor-Brown e7164d8a78 View3D perspective camera is now operational
#story[1196]
2017-08-30 13:57:15 +12:00
Connor Taylor-Brown cf838f2072 Added View3D control for rendering 3D shapes under a PerspectiveCamera, which is not currently working.
#story[1196]
2017-08-30 01:30:05 +12:00
Connor Taylor-Brown d630788a14 Merge remote-tracking branch 'remotes/origin/story77_lobby' into story86-3D 2017-08-29 22:55:07 +12:00
cbt24 1b1b0a4591 Added floating test cube in title screen initialiser
#story[1191]
2017-08-29 14:38:27 +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
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
cbt24 f7d0e9d466 Boats bounce during collision if pointing into collision
#story[1100]
2017-08-16 17:55:33 +12:00