Michael Rausch
a8599d788b
README.md edited online with Bitbucket
2018-08-12 12:18:31 +00:00
Michael Rausch
5101e55413
README.md edited online with Bitbucket
2018-08-12 12:07:19 +00:00
Michael Rausch
6ecd1c82f4
Updated readme with SENG302 description and authors
2018-06-19 12:15:46 +00:00
William Muir
ffd94b34bc
Fixed error to do with icons/tokens
2017-10-11 15:11:21 +13:00
Kusal Ekanayake
ba49660868
added runlater to snackback
2017-10-11 14:27:32 +13:00
Calum
5dbc23866a
Fixed start line boat position algorithm. Fixed map limits and max players. Fixed concurrency bug on token creation and pickup. Fixed mini map arrows not rendering correctly for finish lines on maps other than the original. Removed System.gc() call after memory issues causing pauses could not be replicated.
2017-10-11 00:13:55 +13:00
William Muir
057af2799a
Added toggle button css settings
...
#story[1274]
2017-09-28 16:47:55 +13:00
Zhi You Tan
45669c333a
Merge remote-tracking branch 'origin/develop' into wind_arrow
...
# Conflicts:
# src/main/resources/css/RaceView.css
# src/main/resources/views/RaceView.fxml
2017-09-28 16:43:38 +13:00
Zhi You Tan
f7fd5494ef
merged Dev in
...
Fixed concurrency exception
#story[1276] #pair[zyt10, ajm412]
2017-09-28 16:40:50 +13:00
William Muir
a1d468c689
Added toggle button for the chat history
...
#story[1274]
2017-09-28 16:39:59 +13:00
Zhi You Tan
6fafb02a8f
Merge branch 'develop' into wind_arrow
...
# Conflicts:
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/resources/views/RaceView.fxml
2017-09-28 16:36:34 +13:00
Haoming Yin
4f80640718
Polished raceview UI elements
...
- changed javaFx css style into Css file
tags: #story[1273]
2017-09-28 16:33:16 +13:00
Zhi You Tan
d436d2a6e4
Wind arrow now follows on every camera
...
Follows correctly
#story[1276] #pair[zyt10, ajm412]
2017-09-28 16:31:10 +13:00
Kusal Ekanayake
27379ae96d
Fixed fatal bug to do with mark arrow on boat.
2017-09-28 16:27:57 +13:00
Kusal Ekanayake
ce3e08abfc
Changed minimise and maximise icons for minimap
2017-09-28 16:18:44 +13:00
Calum
923c381797
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 16:17:27 +13:00
Calum
ece45ff967
Fixed map, parrot and camera.
2017-09-28 16:17:19 +13:00
William Muir
02dc1dbd3d
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 16:04:29 +13:00
Michael Rausch
d9b9c2f808
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 16:04:07 +13:00
William Muir
4e3de02a93
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 16:04:04 +13:00
Michael Rausch
261f68f143
Added port number randomization
...
- Servers all run on different ports, so multiple servers can run on one host
- Port is displayed in lobby
Tags: #story[1281]
2017-09-28 16:03:59 +13:00
William Muir
ed9b7acc62
New Map! Waiheke
...
#story[1274]
2017-09-28 16:03:56 +13:00
Michael Rausch
74c1219e0d
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/dialogs/ServerCreationController.java
2017-09-28 16:02:04 +13:00
Calum
83218ae0a0
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 16:01:32 +13:00
Calum
0231c43a2c
Arrows work. mark arrow thinner. refactored marker class.
...
#fix
2017-09-28 16:01:24 +13:00
Michael Rausch
a05a41d5ec
Added port number randomization
...
- Servers all run on different ports, so multiple servers can run on one host
- Port is displayed in lobby
Tags: #story[1281]
2017-09-28 15:57:59 +13:00
Haoming Yin
06bc3644bc
Removed dead code in MeesageFactory and redundant classes
...
tags: #story[1273]
2017-09-28 15:54:09 +13:00
Haoming Yin
7620f0023e
Removed dead code in MainServerThread
...
tags: #story[1273]
2017-09-28 15:43:35 +13:00
Kusal Ekanayake
77ee1ebbc0
Fixed faulty tests.
2017-09-28 15:35:58 +13:00
William Muir
6d0835b0cf
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-09-28 15:29:00 +13:00
William Muir
54410efa12
Changed garbage collection to once every second, Changed wind walker icon to white
...
#story[1273]
2017-09-28 15:24:45 +13:00
William Muir
74241ee819
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 15:23:50 +13:00
Kusal Ekanayake
a9ce8901f5
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 15:17:06 +13:00
Michael Rausch
8810554ce9
Fixed bug where server wasn't being unregistered from discovery server
...
- Added missing unregister() method call
Tags: #story[1281]
2017-09-28 15:16:37 +13:00
Kusal Ekanayake
7e3ed872ed
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# src/main/java/seng302/visualiser/ClientToServerThread.java
2017-09-28 15:08:53 +13:00
Kusal Ekanayake
21ce34dda2
Fixed finish screen and cleaned up dead code
2017-09-28 15:08:34 +13:00
William Muir
2bf318a122
Merge branch 'story1273_minimap' into develop
2017-09-28 15:08:32 +13:00
Michael Rausch
e56d284792
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 15:00:24 +13:00
Michael Rausch
80c26a9e4a
Fixed bug where server could connect to an expired server
...
- Increased update interval
Tags: #story[1281]
2017-09-28 15:00:00 +13:00
Calum
e1ebbc71c1
Added drawing to fx thread
...
#fix
2017-09-28 14:57:52 +13:00
Calum
c4a3df32c8
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 14:47:00 +13:00
Calum
1e19dd5ab6
Fixed parrot again.
2017-09-28 14:46:55 +13:00
William Muir
c98297ea79
Merged dev changes back on to mini map
...
#story[1273]
2017-09-28 14:44:16 +13:00
Alistair McIntyre
1aedcaddf5
removed an added print statement
...
tags : #story[1275]
2017-09-28 14:42:34 +13:00
Alistair McIntyre
d7fc339ad5
- Added Madagascar Map
...
tags : #story[1275]
2017-09-28 14:41:35 +13:00
William Muir
a5eea10c87
Merge branch 'develop' into story1273_minimap
...
# Conflicts:
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java
# src/main/resources/meshes/boatSTLs/parrot_features.stl
2017-09-28 14:41:08 +13:00
Zhi You Tan
51078c82a0
Merge remote-tracking branch 'origin/develop' into wind_arrow
...
# Conflicts:
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java
2017-09-28 14:38:31 +13:00
Zhi You Tan
22fbb529ef
Wind arrow follows wind data
...
#story[1276]
2017-09-28 14:37:46 +13:00
Kusal Ekanayake
02aabc3162
Removing dead code in race view controller and fixed mark rounding bug
2017-09-28 14:35:40 +13:00
Alistair McIntyre
d2a05de25a
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 14:34:39 +13:00
Calum
597fbe935f
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 14:28:16 +13:00
Calum
7cfad28d6b
Fixed parrot
2017-09-28 14:28:07 +13:00
Michael Rausch
3345734efd
Fixed memory leak by forcing garbage collection
2017-09-28 14:22:33 +13:00
Haoming Yin
9795083d4d
Added confirm button in keybinding dialog.
...
- clicking confirm button will exit the dialog
- [WIP] exit without clicking confirm button will still save changes, which should be fixed in the future
tags: #story[1273]
2017-09-28 13:58:25 +13:00
Kusal Ekanayake
f02208ba3a
Loopty loop map added
2017-09-28 13:33:09 +13:00
Zhi You Tan
d3e8a21d2f
Made the windView observer the gameView camera
...
#story[1276] #pair[ajm412, zyt10]
2017-09-28 13:18:19 +13:00
William Muir
b9a2d60115
Merged dev changes back on to mini map
...
#story[1273]
2017-09-28 12:58:19 +13:00
William Muir
076c4c9a40
Merge branch 'develop' into story1273_minimap
...
# Conflicts:
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java
# src/main/resources/views/RaceView.fxml
2017-09-28 12:54:12 +13:00
Calum
8d74c3b756
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 12:44:33 +13:00
Calum
3f666fa092
Made waka larger.
2017-09-28 12:44:24 +13:00
Haoming Yin
55d82298b6
Beautified the loading splash screen
...
- added 7-color rainbow spinners
- added background image
- added subtitle
- changed font size and color
tags: #story[1273]
2017-09-28 12:42:46 +13:00
William Muir
909407fe63
Merge branch '1293_PowerUps_TokenInfo' into develop
2017-09-28 12:31:14 +13:00
William Muir
cb4e47f71a
Fixed icon backgrounds to be white
...
#story[1293]
2017-09-28 12:31:00 +13:00
William Muir
499acb9733
Merge branch '1293_PowerUps_TokenInfo' into develop
2017-09-28 12:21:12 +13:00
William Muir
5688e10e6f
Tokens now display on the right and are clickable for further information
...
#story[1293]
2017-09-28 12:20:16 +13:00
Alistair McIntyre
c72c4929ff
Merge remote-tracking branch 'origin/develop' into develop
2017-09-28 12:15:44 +13:00
Alistair McIntyre
265b20ad61
- Created Madagascar Map Initial
...
tags : #story[1275]
2017-09-28 12:12:22 +13:00
William Muir
5cbd729214
Tokens now display on the right and are clickable for further information
...
#story[1293]
2017-09-28 12:08:14 +13:00
Calum
ddf5a96e0f
Merge branch '1276_Next_Mark_Indicator' into develop
2017-09-28 12:03:30 +13:00
Calum
81b2d285e9
Changed arrow colour.
...
#fix
2017-09-28 12:02:24 +13:00
Calum
5d7f307260
Changed arrow colour.
...
#fix
2017-09-28 12:02:09 +13:00
Zhi You Tan
852575c9e7
Merge remote-tracking branch 'origin/develop' into wind_arrow
...
# Conflicts:
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java
# src/main/resources/views/RaceView.fxml
2017-09-28 11:57:12 +13:00
Kusal Ekanayake
4ec23a1785
Fixed race fxml not showing other elements
2017-09-28 11:30:09 +13:00
Haoming Yin
37e4fe4ce7
Issue #83 : Server creation dialog need to be polished
...
- rearranged the layout of all the nodes
- set CSS files for the dialog
- added close button
tags: #story[1273]
2017-09-28 11:13:02 +13:00
Zhi You Tan
567e351c7f
Updated wind arrow 3D model
...
#story[1276]
2017-09-28 11:02:47 +13:00
Calum
e87931a8fc
Merge branch 'develop' into story1273_minimap
2017-09-28 10:21:23 +13:00
Calum
d1edbc4b8a
Put the arrows into the minimap. Fixed the issue with curved section of port marks.
...
#fix #implement
2017-09-28 10:19:32 +13:00
Calum
275a2cbab7
Made continous turning the default. Added triangles to minimap. Made mark areas bigger
...
#fix #implement
2017-09-28 10:12:18 +13:00
Calum
705669ad07
centered icons #fix
2017-09-28 07:23:25 +13:00
Calum
71f6b9accb
Fixed duplicate waka files.
...
#fix
2017-09-28 06:59:44 +13:00
Calum
caf04e1e99
Added a waka model.
...
#implement #story[1274]
2017-09-28 06:54:20 +13:00
Calum
b9cb6fa5b4
Added token information to the lobby screen.
...
#implement #story[1293]
2017-09-28 05:09:54 +13:00
Zhi You Tan
72fe8c4881
- Removed 2D wind and replaced with 3D wind arrow.
...
#story[1276]
2017-09-28 04:13:44 +13:00
Calum
0b8e2499a7
Fixed some internal stl faces on parrot
...
#fix
2017-09-28 03:35:28 +13:00
Calum
9075d2a909
Added a minimap to the race view.
...
#implement #story[1273]
2017-09-28 03:17:33 +13:00
alistairjmcintyre
00e2af9c14
- Fixed Merge Errors and some broken lighting AGAIN
...
#tags [1276]
2017-09-28 02:20:34 +13:00
William Muir
ba768deabc
Initial commit for The Token info panel in the lobby controller
...
- Having some mad issues with front end formatting with JFX.
- Icons are put in boxes
#story[1293]
2017-09-28 02:17:39 +13:00
alistairjmcintyre
73861b2ef3
Merge branch 'develop' into 1276_Next_Mark_Indicator
2017-09-28 02:06:18 +13:00
alistairjmcintyre
4018dd783e
- Fixed Merge Errors and some broken lighting
...
#tags [1276]
2017-09-28 02:05:47 +13:00
Michael Rausch
8b7407bf89
Various bug fixes
...
- Closed socket when discovery server crashes, so it can be restarted
- Flattened water on terrain mesh
- Added checks to ensure server is started before connecting
- Added a check to ensure client has started before connecting to the server
- Fixed concurrency issue in server-> client thread list
Tags: #story[1281]
2017-09-28 01:58:49 +13:00
Calum
00ddf117b2
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/resources/images/wind-180.png
2017-09-28 00:26:09 +13:00
Calum
a266779709
Added new Wind Waker mesh
...
#implement #story[1293]
2017-09-28 00:24:34 +13:00
Haoming Yin
df24fe072a
Added animation for wind turning.
...
- enlarged the wind image size to centre the compass
- added animation to smooth the turning
2017-09-28 00:13:45 +13:00
Calum
a1a34b9bd7
Merge branch 'develop' of https://eng-git.canterbury.ac.nz/seng302-2017/team-13 into develop
2017-09-27 23:36:14 +13:00
Calum
42d490d6fd
Added new Wind Waker mesh
...
#implement #story[1293]
2017-09-27 23:35:51 +13:00
Haoming Yin
cd4a2f8da3
Merge remote-tracking branch 'origin/develop' into develop
2017-09-27 22:47:08 +13:00
Haoming Yin
287cfd77d0
Fix: smoothing wind rotation
...
- added animation for wind rotation
- enlarged wind image's background to centre the compass
#story[1273]
2017-09-27 22:45:56 +13:00
alistairjmcintyre
a08a38c985
- Fixed Merge Errors
...
#tags [1276]
2017-09-27 22:25:32 +13:00
alistairjmcintyre
810dde6a21
Merge branch 'develop' into 1276_Next_Mark_Indicator
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView3D.java
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java
2017-09-27 22:15:02 +13:00
alistairjmcintyre
7a76efa2ce
- Added ability to color the indicators.
...
#tags [1276]
2017-09-27 22:07:24 +13:00
William Muir
ff4c2cd5b6
Merge branch '1273_Skybox' into 'develop'
...
1273 skybox
Server Discovery:
- Created server discovery server.
- Implemented protocols to support matchmaking & room code connection
- Improved error handling for server disconnections
Skybox:
- Added a skybox
- Added a terrain mesh
See merge request !79
2017-09-27 21:52:34 +13:00
alistairjmcintyre
c5e6302f86
- Added circle to boat to indicate which boat is the players and to show where the arrow is pointing.
...
#tags [1276]
2017-09-27 21:31:02 +13:00
Peter Galloway
cd199767ae
created new models for all pickups #story[1293]
2017-09-27 20:40:40 +13:00
Michael Rausch
5cc4898ab5
Fixed failing tests & other bug fixes
...
- Fixed server capacity in server list
- Fixed failing unit tests for chat
Tags: #story[1281] #pair[mra106, cir27]
2017-09-27 20:37:29 +13:00
Haoming Yin
22e1e57c24
Issue #73 : If you change controls to 'Continuously turning' before moving into game, it is not applied
...
- always send turning mode packet when race starts to sync the steering mode
#story[1278]
2017-09-27 20:18:06 +13:00
Haoming Yin
c5d2016733
Merge branch 'issue_#67_early_start' into 'develop'
...
added a check in the start logic to make sure a boat can't cross the start line early
See merge request !74
2017-09-27 19:42:05 +13:00
Kusal Ekanayake
efc71f2003
Resolved issue #69 and added dock icon for splash screen.
2017-09-27 19:27:13 +13:00
Alistair McIntyre
be72062c8e
Merge branch 'develop' into 1276_Next_Mark_Indicator
...
# Conflicts:
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java
2017-09-27 19:25:08 +13:00
Alistair McIntyre
0d212a4a1d
- Indicator works correctly, sits in the right place, rotates around the boat correctly and sits on top of the water now.
...
tags : #story[1276]
2017-09-27 19:20:33 +13:00
Alistair McIntyre
0e9b818071
- Indicator points towards the next mark. Seems to do some funny stuff when entering a compound mark(gate).
...
tags : #story[1276]
2017-09-27 18:50:38 +13:00
Alistair McIntyre
452e83c1c3
- Marker seems to be detecting the correct mark but somethings wrong with the maths.
...
tags : #story[1276]
2017-09-27 17:52:54 +13:00
Alistair McIntyre
aded794a67
- Added new indicator for direction to next mark.
...
- Marker rotates towards a given heading.
tags : #story[1276]
2017-09-27 17:17:50 +13:00
Michael Rausch
2b3a972ed5
Various bug fixes
...
- Fixed bug where an invalid port number would crash the program
- Closed the stage before cleaning up resources. This speeds up closing the app.
- Added error handling for when the client looses connection to the server.
Tags: #story[1281]
2017-09-27 17:14:55 +13:00
Calum
2a523a5664
Added a duck boat mesh.
...
#implement #story[1274]
2017-09-27 17:03:02 +13:00
Zhi You Tan
270326ea77
Created prototype compass arrow mesh
...
#story[1276]
2017-09-27 16:03:59 +13:00
Michael Rausch
67f3124cfb
Merge branch 'develop' into 1273_Skybox
2017-09-27 15:32:54 +13:00
Michael Rausch
7db387bdec
Merged Host Customisation onto 1273_Skybox
2017-09-27 15:31:54 +13:00
Alistair McIntyre
2ceca2fd42
Merge branch 'loading_screens' into 'develop'
...
Loading screens
# Changes
- Fixed a bug with sound not being muted consistently (the music would play when you press play again even if the music was muted)
- Added a splash screen to show for ~2 seconds on launch, doesn't repeat again while playing the same instance
- Added a loading screen which disappears when the race view has finished being set up (boats in place etc)
# Testing
- Manual testing done, few irrelevant bugs have been found, will log in issue tracker
See merge request !78
2017-09-27 15:05:36 +13:00
Michael Rausch
00ff771fc3
Merge remote-tracking branch 'origin/story1275_host_customization' into 1273_Skybox
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/GameView3D.java
# src/main/java/seng302/visualiser/controllers/dialogs/ServerCreationController.java
2017-09-27 14:56:09 +13:00
Michael Rausch
d963785679
Added files from merge
2017-09-27 14:47:32 +13:00
Michael Rausch
78f64557c3
Merged dev onto 1273_Skybox
2017-09-27 14:46:12 +13:00
Michael Rausch
982fac38a0
Merge remote-tracking branch 'origin/develop' into 1273_Skybox
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/MessageFactory.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/model/ClientYacht.java
# src/main/java/seng302/model/mark/MarkOrder.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/GameView3D.java
# src/main/java/seng302/visualiser/controllers/ServerListController.java
# src/main/java/seng302/visualiser/controllers/dialogs/ServerCreationController.java
# src/main/resources/icons/bumperIcon.png
# src/main/resources/icons/handlingIcon.png
# src/main/resources/icons/velocity.png
# src/main/resources/icons/windWalkerIcon.png
# src/main/resources/views/RaceView.fxml
# src/main/resources/views/dialogs/ServerCreationDialog.fxml
2017-09-27 14:23:38 +13:00
Kusal Ekanayake
edbfb2f84f
Modified timings for load screen.
2017-09-27 14:16:27 +13:00
Kusal Ekanayake
c01111038f
Merge branch 'develop' into loading_screens
...
# Conflicts:
# src/main/resources/views/RaceView.fxml
2017-09-27 14:05:46 +13:00
William Muir
fd53fd52a4
Forgot to git add the new icon.. again.. sorree
...
#story[1293]
2017-09-27 12:44:50 +13:00
William Muir
6f62efcc93
Updated the icons to be more uniform and transparent
...
#story[1293]
2017-09-27 12:44:22 +13:00
Michael Rausch
daf3867433
Server discovery bug fixes & error handling improvements
...
- Fixed concurrency bug that prevented players from connecting to servers
- Discovery server can restart itself if it crashes
- Added nicer error handling for server discovery.
- Using AWS to get servers external IP address.
Tags: #story[1281]
2017-09-27 12:32:17 +13:00
William Muir
e5af7bf666
Minor fixes. Only one person can have wind walker now. Tokens spawn at 30s rather than 15
...
#story[1293]
2017-09-27 12:06:16 +13:00
William Muir
85ca91db96
Minor fixes. Only one person can have wind walker now. Tokens spawn at 30s rather than 15
...
#story[1293]
2017-09-27 11:55:40 +13:00
William Muir
2eb7e603f1
Merge remote-tracking branch 'origin/develop' into 1293_PowerUps
2017-09-27 03:01:41 +13:00
William Muir
658a342118
Added the bad random to git sorree forgot to git add
...
#story[1293]
2017-09-27 03:01:23 +13:00
Calum
c0bd498f1b
Added debugs for missing xml
2017-09-27 02:50:36 +13:00
Calum Irwin
ea52977aeb
Merge branch '1293_PowerUps' into 'develop'
...
1293 power ups
# Changes
* Token Objects added to represent pickups along with their corresponding mesh objects
* Yachts now have a powerup attribute
* Power up attribute is checked in Game State updates and updates are now done appropriately, dependant on this power up
* RaceViewController now has a grid pane to show the different power up icons. These will display when a token is picked up and blink when they are about to dissapear
* Token generator created. This generates token locations randomly in the map in circles centred between the legs of the race
* Added Yacht EventCodes for the different type of power / up / down status effect actions
# Refactor
* Moved Timer tasks such as spawn tokens and update wind into the GameState where they belong
* Moved the creation of some messages in odd places, server side, into the MessageFactory class
# Testing
* Manual test done
* Junits created for the random token generator
See merge request !77
2017-09-27 02:47:57 +13:00
William Muir
10fa51a105
Added some testing for the Random spawner
...
#story[1293]
2017-09-27 02:27:30 +13:00
Calum
b18d9e8573
Added empty cucumber
...
#test
2017-09-27 02:04:58 +13:00
Calum
e9881bb24a
Added per map max player count. Handles case when map cannot fit players behind start mark. Added initial implementation for spacing out yachts.
...
#implement #story[1275]
2017-09-27 02:04:24 +13:00
William Muir
c54a1e141d
Merge remote-tracking branch 'origin/develop' into 1293_PowerUps
...
# Conflicts:
# src/main/resources/views/RaceView.fxml
2017-09-27 01:49:18 +13:00
William Muir
6d51ea3574
Created a random place token generator.
...
Generates a location between any leg of the race in a random angle / distance of the radius of the centre point of the two gates to one of the gates
#story[1293]
2017-09-27 01:44:01 +13:00
Zhi You Tan
d56468e4aa
- Fixed snackbar not showing on race view
...
- Added close label on server creation dialog
#story[1273]
2017-09-27 00:38:42 +13:00
Calum
ab5ad58237
Merge branch 'develop' into story1275_host_customization
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView3D.java
2017-09-26 23:37:59 +13:00
Calum
df7264cc1f
Added per map max player count. Handles case when map cannot fit players behind start mark. Added initial implementation for spacing out yachts.
...
#implement.
2017-09-26 23:34:19 +13:00
Zhi You Tan
5248921576
Multiple fixes:
...
- fix last button no longer default focused when loading keybinding dialog
- fix click and mouse exit still focused on button
- closing keybinding does not focus on chat anymore
#story[1273]
2017-09-26 22:52:58 +13:00
William Muir
330ccd272d
The random token now has a 50% chance of causing your boat to have a speed penalty
...
#story[1293]
2017-09-26 21:13:35 +13:00
William Muir
4b7dfe38c4
Fixed Boats powering up and down correctly. Icons respond correctly
...
#story[1293]
2017-09-26 19:43:32 +13:00
William Muir
ab07c7f298
Merge remote-tracking branch 'origin/develop' into 1293_PowerUps
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView3D.java
2017-09-26 19:01:53 +13:00
William Muir
b5076bc976
Fixed wind walker and bumper
...
Added a hack to bumper so that the collision distance is larger than the regular collision distance
Wind walker now makes you go at you max speed rather than VMG speed
#story[1293]
2017-09-26 18:57:15 +13:00
Michael Rausch
2dcdd1c248
Merge branch '1273_Changing_Cameras' into 'develop'
...
1273 changing cameras
# Multiple Camera Views
## 3 Camera Views Implemented
1. Normal 3D (Isometric)
2. Top Down Perspective
3. Chase Cam (Over the Shoulder)
- Isometric and Top Down Perspectives can Pan within limits.
- Chase Cam rotates the camera around the boat. (While still following it)
- All camera views can Zoom.
# Testing
No testing completed other than manually testing myself. A proper manual test should be completed by the merger.
See merge request !76
2017-09-26 18:36:59 +13:00
Alistair McIntyre
9b00f76907
removed print statements and added documentation.
...
tags : #story[1273]
2017-09-26 18:36:13 +13:00
Alistair McIntyre
f11c457d28
removed print statements
...
tags : #story[1273]
2017-09-26 18:31:47 +13:00
Michael Rausch
9e4fa30787
Merge branch 'issue68_boat_not_turning_on_starbord_vmg' into 'develop'
...
the boat can now turn after snapping to starboard vmg #story[1273]
See merge request !75
2017-09-26 18:11:24 +13:00
Alistair McIntyre
99ce4fa11d
Merged develop in and reimplemented keybindings for moving the camera.
...
tags : #story[1273]
2017-09-26 18:01:39 +13:00
Alistair McIntyre
69d1fa9488
Merge branch 'develop' into 1273_Changing_Cameras
2017-09-26 17:36:40 +13:00
Alistair McIntyre
66e6a8a2a4
- Small Changes
...
tags : #story[1273]
2017-09-26 17:35:36 +13:00
Kusal Ekanayake
671efcaf08
Adding spinners to the loading screen.
2017-09-26 17:25:57 +13:00
William Muir
8ba44d7476
Minor commit for testing
...
#story[1293]
2017-09-26 17:19:45 +13:00
Peter Galloway
dd43097677
the boat can now turn after snapping to starboard vmg #story[1273]
2017-09-26 17:07:55 +13:00
Kusal Ekanayake
98abe64f00
Added splash and loading screen
2017-09-26 17:07:02 +13:00
Alistair McIntyre
1a53579317
- Isometric Camera
...
- Zoom Bounds added.
- Camera Panning Bounds added. Need to be tested with extra maps.
tags : #story[1273]
2017-09-26 16:57:07 +13:00
Haoming Yin
132a729758
Temporarily added more options in key binding dialog. But still need to implement binding after camera story has been merged into develop
...
tags: #story[1273]
2017-09-26 15:49:16 +13:00
Peter Galloway
870d7a6e82
added a check in the start logic to make sure a boat can't cross the start line prematurely (they will have to go back and go through it again) #fix #refactor
2017-09-26 15:25:24 +13:00
alistairjmcintyre
2e7487fdfc
- Chase Camera:
...
- Has panning bounds, zoom bounds, and general tidy up.
- Now correctly observes the boat object rather than getting information from both the boat object AND the client yacht model.
Top Down Camera:
- Can only pan within certain bounds now, and will continue to follow the boat regardless.
- Can only zoom within certain bounds now.
Isometric Camera:
- Nothing changed.
#tags [1273]
2017-09-26 15:06:21 +13:00
Haoming Yin
1bd4db73cd
Issue 66: client side error pop ups use default javaFx style
...
- created JFeonix style pop up to replace the default one
tags: #story[1273]
2017-09-26 14:44:37 +13:00
William Muir
7a4cdbe0c9
Fixed WindWalker
...
#story[1293]
2017-09-26 11:12:29 +13:00
Calum
735699dc85
Changed default number of legs.
2017-09-26 01:53:33 +13:00
Calum
81e791bd1a
Fixed issues with showing race view controller. Added missing icons. Added a smooth version of land.
...
#fix
2017-09-26 01:49:43 +13:00
Calum
06e5f4ae00
Merge remote-tracking branch 'origin/1273_Skybox' into 1273_Skybox
2017-09-26 01:35:07 +13:00
Calum
cd2b4cb93c
fixed anchor pane issues
2017-09-26 01:34:59 +13:00
Calum
dde1c82dbb
merge with host customization and dev.
2017-09-26 01:21:55 +13:00
Calum
d9c832168b
Merge branch 'story1275_host_customization' into 1273_Skybox
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView3D.java
# src/main/java/seng302/visualiser/controllers/LobbyController.java
# src/main/java/seng302/visualiser/controllers/ViewManager.java
# src/main/resources/views/LobbyView.fxml
# src/main/resources/views/RaceView.fxml
2017-09-26 01:19:47 +13:00
Michael Rausch
9cfb3b9e5d
Added functionality to automatically select a server
...
- Added functionality on the DiscoveryServer to return a random server to the player
- Added elements to the UI to support auto-selecting a server
- Added client side code to request a random server
Tags: #story[1281]
2017-09-26 01:14:02 +13:00
Calum
e990c68d40
#document
2017-09-26 01:12:43 +13:00
Calum
83871a0336
Fixed boat trials rendering abnormally
...
#issue[65] #fix
2017-09-26 01:07:02 +13:00
Calum
6cba024d64
Made changes to the shape of boat trials.
2017-09-26 00:59:04 +13:00
Calum
51747e2d13
Refactored the 2D and 3D game view class setups. Made scaling more logical.
...
#refactor #story[1275]
2017-09-26 00:55:28 +13:00
Calum
b3981b19e0
Merge branch 'develop' into story1275_host_customization
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/model/ServerYacht.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/controllers/LobbyController.java
# src/test/java/seng302/models/YachtTest.java
2017-09-25 23:25:33 +13:00
Calum
3d7a64068f
Fixed scaling issues.
...
#fix
2017-09-25 23:19:03 +13:00
Calum
c12f7408ad
experimenting with map scaling
...
#implement
2017-09-25 22:57:45 +13:00
Calum
7027de80c4
Fixed issues with correct protocol implementation.
...
#issue[64] #fix #testmanual
2017-09-25 22:09:26 +13:00
Calum
35b50d1436
Refactored 2d game view distance calculations to better size and sale the map,
...
#implement #refactor #story[1275]
2017-09-25 21:06:18 +13:00
Michael Rausch
d0844e861d
Changed water color to blue
2017-09-25 19:25:03 +13:00
Michael Rausch
5d32d76d9d
Added local skybox texture, and changed water color
...
- Changed water color to a more sea-like blue
- Added an extra sun
- Moved skybox texture to the resources folder
2017-09-25 19:19:46 +13:00
Michael Rausch
9ca39d1a7c
Merge branch '1273_Changing_Cameras' into 1273_Skybox
2017-09-25 18:40:15 +13:00
Michael Rausch
30dad8509e
Added skybox & cleaned up server list UI
...
- Moved direct connect fields to a dialog as there was not enough room
- Moved room code to its own label
- Added a skybox texture to the game view
- Added the land mesh to the game view
2017-09-25 18:25:24 +13:00
William Muir
0211f2df38
Merged dev back on
...
#story[1293]
2017-09-25 17:38:09 +13:00
William Muir
dba5a5680f
Merge remote-tracking branch 'origin/develop' into 1293_PowerUps
...
# Conflicts:
# src/main/java/seng302/model/ServerYacht.java
# src/main/resources/views/RaceView.fxml
2017-09-25 17:20:25 +13:00
William Muir
5c50e77efa
Merge branch 'Story1278_keybindings' into 'develop'
...
Story1278 keybindings
# Changes
- Added customised action key binding for all boat actions
- Users can select the turning mode (continuously turning mode, and the default turning mode)
- Refined UI design for key bindings
- Added animation which mouse enters/exits the setting button, and also prompt text to guide users to press key
- Popup window to inform users if their key assignment is successful or not
# Testing
## Manual testing log as below (all passed according to the assigner)
- if a player toggles the turning mode toggle button, the labels for upwind and downwind will be changed correspondingly
- if a player clicks the "reset" button, all the key binding settings will be reset to default
- if a player assigns a key which is already is in use, a popup box will inform the assignment is failed, and action will be changed back
- if a player assigns a key successfully, a popup will inform the success, and the new key binding will appear on the button
- A player can change their key bindings before the race starts and during the race
See merge request !73
2017-09-25 17:11:12 +13:00
Zhi You Tan
0e93be7b36
Fixed send button traversable issue.
...
- removed sensitive characters.
#story[1278] #pair[hyi25, zyt10]
2017-09-25 17:06:36 +13:00
Zhi You Tan
191b818e38
Added close button for keyBindingDialog.
...
- fixed that you cannot bind the key you are using.
#story[1278] #pair[hyi25, zyt10]
2017-09-25 16:31:28 +13:00
Alistair McIntyre
00b09997b0
- Added Camera panning to chase camera mode.
...
tags : #story[1273]
2017-09-25 16:28:37 +13:00
Alistair McIntyre
d250c635d8
- Adjusted server tick rate to test smoothing
...
tags : #story[1273]
2017-09-25 15:32:13 +13:00
Alistair McIntyre
376c4d25a8
Merge branch 'develop' into 1273_Changing_Cameras
...
# Conflicts:
# src/main/java/seng302/model/ClientYacht.java
2017-09-25 14:40:19 +13:00
Alistair McIntyre
e66abb4340
- An attempt at chase cam smoothing. needs work.
...
tags : #story[1273]
2017-09-25 14:39:09 +13:00
Alistair McIntyre
a19e191684
- Chase cam kind of working, need to find a fix for the abrupt direction change.
...
tags : #story[1273]
2017-09-25 14:03:47 +13:00
William Muir
29b97a194d
Merged dev back on
...
#story[1293]
2017-09-25 11:26:44 +13:00
William Muir
8a0ad8d6a9
Merge remote-tracking branch 'origin/develop' into 1293_PowerUps
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/model/ServerYacht.java
2017-09-25 11:19:10 +13:00
Haoming Yin
19db6668da
Fixed merge conflicts in server yacht
...
tags #story[1278]
2017-09-25 11:09:14 +13:00
Haoming Yin
44275aec04
Merge branch 'develop' into Story1278_keybindings
...
# Conflicts:
# src/main/java/seng302/model/ServerYacht.java
2017-09-25 11:06:28 +13:00
Michael Rausch
ca320f7fb8
Merge remote-tracking branch 'origin/1273_Changing_Cameras' into 1281_Server_Discovery_Internet
2017-09-25 00:18:35 +13:00
Zhi You Tan
64245833cd
Merge branch 'Story1274_custom_boat_stats' into 'develop'
...
Story1274 custom boat stats
# Changes
- Added 3 areas for game play variation with the boats (stats)
- Max speed
- Handling
- Acceleration
- Added stat bars on the customize boat screen so players can see the stats
# Testing
- Manual testing
- No JUnits made since no real processing methods were added
See merge request !72
2017-09-24 18:53:15 +13:00
Kusal Ekanayake
aa0149b9a7
Merge branch 'develop' into Story1274_custom_boat_stats
2017-09-24 18:08:54 +13:00
Kusal Ekanayake
f6b41f0513
Fixes Issue #59
2017-09-24 18:06:26 +13:00
Calum
9b00ba654a
Added a race importer. Added imported races to visualizer. Made it so that the host sets the race. Refactored server to no longer be dependant on a specific race. Tested functionality of map manually. Some bugs found and listed below.
...
#implement #testmanual #story[1275]
Known bugs:
* Can't move
* Map is off center in lobby view.
* 3D Map is off center
2017-09-23 22:45:53 +12:00
Haoming Yin
8dfdb228e9
Fixed a bug that game client tries to send turning mode packet when there is no socketThread
...
- add a if statement to check if socketThread is initialized before sending packet.
#story[1278]
2017-09-23 21:04:57 +12:00
Haoming Yin
1042817e4e
Snackbar's color can be changed according to the message type
...
- load a separate css file to change the color
- if the assignment failed, the snackbar prompt will be red, otherwise theme color
#story[1278]
2017-09-23 20:59:29 +12:00
Haoming Yin
066557584f
Implemented turning mode toggle
...
- when the mode is toggled, a boat action package will be sent to notify server
to change the boat's turning mode
- turning mode toggle is now fully functional
#story[1245]
2017-09-23 19:37:13 +12:00
Haoming Yin
4011295b8b
Slightly optimised code style and add more functionality
...
- optimised UI
- check conflicts when change key bind if the key has already been in use
- abstract keybind as a separate singleton class so all class can access it
- [WIP] turning mode is need to be finished
#story[1245]
2017-09-23 17:52:48 +12:00
William Muir
78259f8e33
Boat now changes color when it is bumped for a time
...
ClientYacht: Added ColorChangeListener from GameView3D to re paint the boat when the color attribute is changed
#story[1293]
2017-09-23 16:54:03 +12:00
William Muir
c47e5b1450
Boat now changes color when it is bumped for a time
...
ClientYacht: Added ColorChangeListener from GameView3D to re paint the boat when the color attribute is changed
#story[1293]
2017-09-23 16:31:18 +12:00
Kusal Ekanayake
0a885dd8fd
Clean up changes
...
#story[1274]
2017-09-23 15:37:16 +12:00
Kusal Ekanayake
e9b50038a9
Balance changes. Always wanted to use that as a commit message.
...
#story[1274]
2017-09-23 15:09:22 +12:00
Kusal Ekanayake
364264377a
Fixed merge errors and reimplemented handling multiplier
...
#story[1274]
2017-09-23 15:04:11 +12:00
Kusal Ekanayake
9112183ac3
Merge branch 'develop' into Story1274_custom_boat_stats
...
# Conflicts:
# src/main/java/seng302/model/ServerYacht.java
# src/main/java/seng302/visualiser/controllers/dialogs/BoatCustomizeController.java
2017-09-23 14:48:50 +12:00
William Muir
8c7f9a878d
Created Boat bumper logic. Refactored logic for powering up / dpwn
...
YachtEventType: Added some new events, a generic power down event and a bumper_crash event for an affected boat
GameState: Implemented boat bumper logic
MessageFactory: Made new messages for powerdown and status effect
ClientYacht: Had to create another powerDown functional interface to inform the race view controller when to turn off the icon
RaceViewController/GameClient: Now waits for a message about powering down before turning off rather than waiting time client side
#story[1293]
2017-09-23 13:23:16 +12:00
William Muir
ecb3d4ecbf
Removed sendServerMessage to be replaced with notifyMessageListeners. Minor structure move arounds
...
#story[1293]
2017-09-23 11:49:56 +12:00
William Muir
e61b6d50a1
Small refactor. Fixed tokens to spawn on the minute mark.
...
Moved updates of wind and token timers into gamestate from mainserver thread. Now triggered upon GameState change to start
#story[1293]
2017-09-23 11:33:01 +12:00
Zhi You Tan
957821f1f2
[WIP] Created a snackbar for notification. Currently used for keybinding success/fail. Need to show red if fails.
...
#story[1278]
2017-09-23 01:39:26 +12:00
William Muir
061e49bab9
Implemented wind walker algorithm. Refactored some GameState updating logic to allow for better token logic integration
...
GameState: Moved all token logic into its own function startPoint so that it is dsijoint from other updating logic
GameState: Implemented wind walker algorithm.
GameState: Changed Generic 'speedMultiplier' to 'serverSpeedMultiplier' to make it obviously disjoint from a boats speed multiplier
MessageFactory: Moved some found message creation (Chatter Message) server side into MessageFactory that wasnt already there
ServerYacht: Added a speed multiplier and a handling multiplier to the serveryacht class that is set and reset upon powerup / down
#story[1293]
2017-09-22 23:44:03 +12:00
Zhi You Tan
094eb4c1cf
Merge remote-tracking branch 'origin/develop' into Story1278_keybindings
...
# Conflicts:
# src/main/resources/views/RaceView.fxml
2017-09-22 21:22:06 +12:00
William Muir
a3c555d5fe
Merge remote-tracking branch 'origin/develop' into 1293_PowerUps
...
# Conflicts:
# src/main/java/seng302/model/ClientYacht.java
2017-09-22 21:18:58 +12:00
William Muir
607acff7c6
Merge branch 'Custom_boat_selection' into 'develop'
...
Custom boat selection
# Story 1274 Feature Custom Boat Selection
## Changes
- 2 new boats!
- A boat selector in the customisation for boat dialog
- The potential for everyone to use whatever boats and for everyone to see
## Testing
- Basic JUnit tests added to test basic util methods added to the BoatMeshType class
- Manual testing completed
See merge request !71
2017-09-22 21:14:12 +12:00
William Muir
22fdf1e4ac
Changed the boatType attribute from all around the place from String lit to enum
...
#story[1274]
2017-09-22 21:00:28 +12:00
William Muir
da8c91f5c1
Review fixes for merge request.
...
PlayerCell now takes in the yacht for construction rather than taking in a whole lot of values extracted from the yacht
Reduced boiler plate in BoatCustomizeController
#story[1274]
2017-09-22 20:44:06 +12:00
Kusal Ekanayake
52dc7a956d
Turned handling into a multiplier.
...
#story[1274]
2017-09-22 17:42:32 +12:00
Kusal Ekanayake
9f64b2380d
Implemented acceleration and full loading bars.
...
#story[1274]
2017-09-22 17:28:42 +12:00
Kusal Ekanayake
b05580f018
Worked on making a visual component to the stats. Need to implement acceleration.
...
#story[1274]
2017-09-22 16:45:10 +12:00
Haoming Yin
c20c6fb264
[WIP] Added new toggle for steer turning mode and submit and reset button (restore the setting to default)
...
- minor fix of UI elements to make the font smaller
- centred labels and buttons
tags: #story[1246]
2017-09-22 13:53:36 +12:00
Kusal Ekanayake
faeece27ff
Started working on individual boat stats. Already modified turning rate. Need to add a vsual component.
...
#story[1274]
2017-09-22 13:52:35 +12:00
Michael Rausch
5e3ae40d03
Made discovery more reliable & added docs/tests
...
- Added unit tests
- Added documentation for discovery classes
- Improved error handling
Tags: #story[1281]
2017-09-22 00:01:13 +12:00
Michael Rausch
95ad7a4840
Finished implementing room codes.
...
- Fixed bug where room code wasn't parsed correctly
- Added room code selection to server list screen.
- Added room code to hosts lobby.
- Implemented communication protocols on the game client.
Tags: #story[1281]
2017-09-21 22:48:33 +12:00
Calum
6ca75b2cac
Changed default race
2017-09-21 15:08:39 +12:00
Alistair McIntyre
6ff309a40c
- Perspective Camera Works
...
- Top Down Camera Works
- Started on chase cam but the math is a bit tricky.
tags : #story[1273]
2017-09-21 14:40:35 +12:00
Calum
40a7f9bc5b
New server creation view created. Added templates for custom races. Updated xml generator to remove all hard coded values. Updated XMLParser to parse custom race files. No unit tests exists currently.
...
#implement #story[1275]
2017-09-21 12:59:37 +12:00
Kusal Ekanayake
c4a6113f6c
Minor bug fixes (like all enemy sails being toggled in when they should be out)
...
#story[1274]
2017-09-20 21:07:49 +12:00
Kusal Ekanayake
307e79ecfc
Completed working boat selection screen.
...
When a user selects a different boat, it is sent to all other clients and updates accordingly. Boats are all shown with their correct models in game.
#story[1274]
2017-09-20 20:46:23 +12:00
Michael Rausch
e17e9749d8
Implemented server to manage a list of available servers on the internet.
...
- Implemented a server manager that keeps track of servers & room codes, and removes old servers
- Implemented queries to find a server with a specific room code
- Implemented protocol to register servers
#story[1281]
2017-09-20 20:26:14 +12:00
Kusal Ekanayake
7d8a6afa5f
Merge branch 'new_meshes' into Custom_boat_selection
2017-09-20 19:40:43 +12:00
Peter Galloway
ea0be5e952
Added pirate ship meshes to application. Updated boat model to allow for jib sails and a fixed sail. #story[1274]
2017-09-20 17:56:07 +12:00
William Muir
3be8cd264d
Adding icon files to git
...
#story[1245]
2017-09-20 17:52:02 +12:00
Peter Galloway
7197bc2bee
created meshes for pirate ship #story[1274]
2017-09-20 17:33:32 +12:00
William Muir
66d9a06f9e
Adding icon files to git
...
#story[1245]
2017-09-20 17:19:14 +12:00
Calum
fba522d0c3
Fixed BoatMeshType enum names.
...
#fix
2017-09-20 16:44:38 +12:00
Calum
0e829874c2
Fixed BoatMeshType enum names.
...
#fix
2017-09-20 16:43:04 +12:00
Calum
c5d56065b6
Fixed cat ate a meringue sail rotation.
...
#fix #story[1274]
2017-09-20 16:42:26 +12:00
Kusal Ekanayake
410d765745
Started working on the boat selection screen.
...
Customised the boat customisation UI to contain it. Need to have another boat to test whether we can switch boats and also if the messages get sent correctly.
#story[1274]
2017-09-20 16:36:27 +12:00
Calum
fe76e85c71
Merge branch 'develop' into new_meshes
2017-09-20 15:59:01 +12:00
Calum
9d61a43bd7
Added catamaran mesh to possible boat meshes. Made catamaran the default boat.
...
#implement #story[1274]
2017-09-20 15:58:22 +12:00
Kusal Ekanayake
c39582de5c
Updated PartyParrot logo
2017-09-20 15:41:20 +12:00
William Muir
034e4c252a
Icons now display, blink when they are about to run off, and turn off after their time out
...
TokenType Enum now also has a timeout construction field
#story[1245]
2017-09-20 13:09:09 +12:00
William Muir
6cde016401
Fixed random token assigning and realisation
...
Token class now has two functions: assignRandomType and realiseRandomType
The former can be used to assign any random type to the token including the random type
The latter can be used to assign a concrete random type to the token (not the random type)
#story[1245]
2017-09-20 12:02:12 +12:00
Zhi You Tan
d4d7ddf8e2
Keybinding now works in the actual race. A map of keybind is shared between GameClient and KeyBindDialogController.
...
#story[1278]
2017-09-20 11:02:13 +12:00
Zhi You Tan
a1933c2869
- Created keybindingcontroller which can detect keypress and can save the keybind throughout the app
...
- Changed keybindingglyph to keyboard icon
- Fix button hover CSS to change text fill
#story[1278]
2017-09-20 02:42:02 +12:00
Zhi You Tan
8084a61333
Fix keybinding dialog creating on top of another keybinding dialog.
...
#story[1278]
2017-09-19 23:41:06 +12:00
William Muir
52d3cea592
Added preliminary icons for pickups
...
RaceView now has a grid pane to contain some icons to display power ups. These are just preliminary
ClientYacht now has a power up field that is set from recieveing messages in the Game Client, as well as observed by the RaceViewController to display the relevant icon when the powerup field is changed
#story[1245]
2017-09-19 23:04:17 +12:00
Zhi You Tan
03f5f91043
Done some CSS on keybindingdialog
...
#story[1278]
2017-09-19 19:49:36 +12:00
Peter Galloway
9ed52a1225
created catamaran mesh #story[1274]
2017-09-19 19:43:03 +12:00
Zhi You Tan
027324cc4f
- Fixed JFXDialog initialised in lobby, raceview, serverlist controller by default. Now, dialog only appears when called.
...
- [WIP] Created keybindingdialog fxml. CSS not yet done.
- Removed top most anchorpane on raceview so parent is stackpane like other views.
#story[1278]
2017-09-19 18:40:01 +12:00
William Muir
78596ea111
Initial commit for Power Up story
...
Made new preliminary models for each power up. Currently just different colour balls
Added new YachtEventTypes in the enum for each pick up to be sent out to clients
Tokens now not only randomise location but also randomise which type of token will be sent out
Added new methods to the MessageFactory class - Make collision and Make pickup Message
Game Client now checks what type of Yacht Event code has come in to respond appropriately rather than just generic collision / token.. although this has not been implemented yet
Game View loads appropriate token models depending on what is in XML
#story[1245]
2017-09-19 17:47:05 +12:00
Calum
da263355f4
Changed raceview background.
...
#fix
2017-09-19 14:55:26 +12:00
Calum
ebecd25ed2
Merge remote-tracking branch 'origin/develop' into develop
2017-09-19 14:54:15 +12:00
Calum
0f5137c2b6
Fixed the orientation of .stl files.
...
#fix
2017-09-19 14:52:02 +12:00
Kusal Ekanayake
73799954e4
Fixed tests that failed when running on lower end computers. Needed to add a couple of thread.sleeps
2017-09-15 12:47:40 +12:00
Haoming Yin
edfeb2b287
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-14 15:40:26 +12:00
Haoming Yin
0355784000
Broadcast messages when boats pass legs or a token is picked up or expired.
...
tags: #story[1250] #pair[hyi25, zyt10]
2017-09-14 15:40:12 +12:00
Alistair McIntyre
02df69b7b4
- Merged Dev into branch
...
Tags: #story[1245]
2017-09-14 15:27:10 +12:00
Alistair McIntyre
242132b800
Merge remote-tracking branch 'origin/develop' into NewUI_merge
...
# Conflicts:
# src/main/resources/views/RaceView.fxml
2017-09-14 15:26:57 +12:00
Alistair McIntyre
3a671d4ed0
- Added Values to Finish Dialog.
...
Tags: #story[1245]
2017-09-14 15:24:58 +12:00
Alistair McIntyre
482d987839
- Fixed Null Pointer
...
- Build Should pass
Tags: #story[1245]
2017-09-14 15:10:48 +12:00
Haoming Yin
cc124b2d19
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
2017-09-14 14:50:49 +12:00
Haoming Yin
b3320ad805
Fixed server message sender
...
tags: #story[1246]
2017-09-14 14:49:25 +12:00
Alistair McIntyre
33779ad5c1
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
...
# Conflicts:
# src/main/resources/views/RaceView.fxml
2017-09-14 14:42:57 +12:00
Alistair McIntyre
3a41c27d8d
- Race Finish Dialog showing up, unsure if its actually showing the correct ordering or not.
...
tags : #story[1245]
2017-09-14 14:42:25 +12:00
Calum
e24203904b
Removed print statements.
...
#chore
2017-09-14 14:37:22 +12:00
Calum
eb188495ce
Fixed position issues on exit arrows.
...
#implement #story[1266] #fix
2017-09-14 14:32:45 +12:00
Calum
62a7e2b8fa
Fixed position issues on entry arrows.
...
#implement #story[1266] #fix
2017-09-14 14:21:04 +12:00
Michael Rausch
acd0e790fe
Added method to send server debug messages to players
...
Tags: #story[1246]
2017-09-14 14:14:21 +12:00
Zhi You Tan
46013474c0
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-14 13:37:01 +12:00
Alistair McIntyre
bf427f24d3
- Created a Race Finish Dialog.
...
tags : #story[1245]
2017-09-14 13:34:48 +12:00
Alistair McIntyre
7d0a47446d
- Fixed bug in customize dialog.
...
tags : #story[1245]
2017-09-14 13:02:31 +12:00
Alistair McIntyre
889098bb50
- Commented out broken test (non-deterministic thing)
...
- Merged 3d factory branch in
tags : #story[1245]
2017-09-14 12:46:17 +12:00
Alistair McIntyre
6223a8fc0b
Merge remote-tracking branch 'origin/story1266_3d_model_factory' into NewUI_merge
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView3D.java
2017-09-14 12:40:20 +12:00
Calum
391bd33548
Fixed position issues on first 2 mark arrows.
...
#implement #story[1266]
2017-09-14 12:38:36 +12:00
Alistair McIntyre
7e0c2abbfd
- Fixed a shutdown bug that left the game process running long after the window shut
...
- Changed SVG Icon for volume toggle to something a bit nicer
tags : #story[1245]
2017-09-14 12:31:49 +12:00
Calum
42a5e86bf8
Merge remote-tracking branch 'origin/NewUI_merge' into story1266_3d_model_factory
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView3D.java
2017-09-14 12:06:19 +12:00
Calum
20d73d8f2f
Removed dead code from fxObjects and GameView 3D
...
#chore
2017-09-14 12:05:20 +12:00
Calum
0a62c538ca
Added 3D mark arrows and cleaned up other classes.
2017-09-14 11:28:50 +12:00
Zhi You Tan
24a04aa530
Fix the wind direction arrow rotation.
...
#story[1245]
2017-09-14 01:05:52 +12:00
Haoming Yin
7ee6a09626
Fixed that wind speed did not updated frequently and UI polishing.
...
- added shadow for raceview boxes
- split up message history and input text block
- changed timer font
#story[1245]
2017-09-13 21:11:40 +12:00
Zhi You Tan
47798b19fe
Added player position, boat speed, boat heading to race view.
...
#story[1245]
2017-09-13 11:22:05 +12:00
Zhi You Tan
d9247eb031
Added player position, boat speed, boat heading to race view.
...
#story[1245]
2017-09-13 11:21:33 +12:00
Zhi You Tan
7b0d31438e
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge_ryan
2017-09-13 09:44:17 +12:00
Alistair McIntyre
1e74321aab
- Lobby Disconnection works.
...
tags : #story[1245]
2017-09-12 18:26:25 +12:00
Zhi You Tan
f0fc75feec
[WIP] Adding player position, boat speed, boat heading
...
#story[1245]
2017-09-12 18:25:46 +12:00
Kusal Ekanayake
c8dc448a52
Added tests for sounds and modified the transparency for the chat history window.
...
#story[1245]
2017-09-12 18:11:32 +12:00
Michael Rausch
e518d13fd5
Fixed bug where number of players was off by 1
...
#story[1247]
2017-09-12 17:47:02 +12:00
Alistair McIntyre
167545cbef
- Deleted old controllers that didn't do anything anymore.
...
tags : #story[1245]
2017-09-12 17:45:39 +12:00
Alistair McIntyre
20b656b16d
- Fixed a bug in new customize dialog.
...
- Chat should work correctly when pressing enter now.
tags : #story[1245]
2017-09-12 17:26:52 +12:00
Alistair McIntyre
90a54beb8d
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-12 17:19:29 +12:00
Alistair McIntyre
e375efb8e9
- Added documentation to controllers
...
- Moved Customization Dialog logic into LobbyController
tags : #story[1245]
2017-09-12 17:19:18 +12:00
Michael Rausch
06e9c55d2c
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-12 17:17:46 +12:00
Michael Rausch
9cba76f979
Fixed maven source encoding
2017-09-12 17:17:16 +12:00
Calum
d5ce61a0ff
Merge branch 'NewUI_merge' into story1266_3d_model_factory
...
# Conflicts:
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-09-12 17:09:47 +12:00
Alistair McIntyre
634322de3f
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-12 17:08:22 +12:00
Calum
6f534a430d
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
...
# Conflicts:
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java
2017-09-12 17:04:37 +12:00
Calum
17b0864815
Moved transformation of boat icon view from controller class to model factory class.
...
#implement #story[1266] #refactor
2017-09-12 17:03:50 +12:00
Alistair McIntyre
3455321f01
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-12 16:54:55 +12:00
Alistair McIntyre
7e9e96c091
- Added documentation to controllers
...
tags : #story[1245]
2017-09-12 16:54:40 +12:00
Zhi You Tan
b25c3367a9
Reimplemented wind. Wind arrow will rotate based on wind direction. Added labels for wind direction and wind speed.
...
#story[1245]
2017-09-12 16:52:44 +12:00
Kusal Ekanayake
ec7ee34305
Fixed tests.
2017-09-12 16:52:26 +12:00
William Muir
9dad88e56a
Fixed bug where server creation dialog validation was not working
...
#story[1245]
2017-09-12 16:45:52 +12:00
William Muir
6a4547f3f9
Minor fix so no lag when token is picked up
...
upon receiving a new RaceXML when one has been recieved we no longer update the course. Just update tokens
#story[1245]
2017-09-12 16:37:29 +12:00
Peter Galloway
71f626f57e
fixed sail rotation broken from port to 3d #story[1266]
2017-09-12 16:30:20 +12:00
William Muir
1c343ec02d
Changed the lobby map view to the 2D race rather than the 3D one.
...
Stripped back game view class appropriately.
#story[1245]
2017-09-12 16:13:14 +12:00
William Muir
5046ca6ffa
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-12 16:08:39 +12:00
William Muir
bd31bae586
Changed the lobby map view to the 2D race rather than the 3D one.
...
Stripped back game view class appropriately.
#story[1245]
2017-09-12 16:08:29 +12:00
Michael Rausch
2f973deacc
Merge branch 'NewUI_merge' of https://eng-git.canterbury.ac.nz/seng302-2017/team-13 into NewUI_merge
2017-09-12 15:56:31 +12:00
Michael Rausch
f4c5e483ce
Merge remote-tracking branch 'origin/3D_view_working_with_maven' into NewUI_merge
2017-09-12 15:56:17 +12:00
Haoming Yin
bb3ee424cc
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-12 15:52:34 +12:00
Haoming Yin
99f38fa05f
[WIP] Added wind image to the bottom left of the race view.
...
tags: #story[1245]
2017-09-12 15:52:22 +12:00
Kusal Ekanayake
6a8c77c670
Made the project successfully build and deploy using new libraries on a local maven repo. Removed old unused libraries.
...
#story[1266]
2017-09-12 15:11:27 +12:00
Kusal Ekanayake
659a521cc9
Started making a cucumber test for allchat.
...
Will need to incorporate mockito in order to mock controller input. Have commented out the tests as they are not working correctly yet.
#story[1246]
2017-09-12 14:55:49 +12:00
Calum
da3613fe36
Split off marker classes.
2017-09-12 14:48:30 +12:00
Calum
8dc3e54186
Merge remote-tracking branch 'origin/story1266_3d_model_factory' into story1266_3d_model_factory
2017-09-12 14:11:11 +12:00
Calum
8fd35392b0
Added experimental assets for water.
...
#story[1266] #implement
2017-09-12 14:11:00 +12:00
Alistair McIntyre
bc9f0ea924
Injected a simple toggle into the decorator for the window for the sound.
...
Unsure if this is the best way to do it but not a bad thing to try for now.
tags : #story[1245] #story[1249]
2017-09-12 13:53:24 +12:00
Haoming Yin
6d9864e677
Fixed chat history text line spacing to a smaller amount.
...
tags: #story[1245]
2017-09-12 11:12:35 +12:00
Haoming Yin
8c2125276e
Polished race view text area and send button UI style to make them pretty
...
tags: #story[1245]
2017-09-12 10:59:08 +12:00
alistairjmcintyre
235d6c9cef
Added 3D element to lobby screen to show the player their boat before the race.
...
tags: #story[1245]
2017-09-12 03:57:29 +12:00
Michael Rausch
5dd936f8f1
Added chat functionality & timer back into the game + bug fixes
...
- Added chat back into the game
- Fixed a bug where the timer would show "race finished" when the race hadn't started
- Fixed a bug where resources weren't being deallocated when the game was closed
Tags: #story[1246]
2017-09-12 01:31:38 +12:00
Michael Rausch
d223d393fa
Merge branch 'story1266_3d_model_factory' into NewUI_merge
2017-09-11 23:45:31 +12:00
Haoming Yin
aa098569f3
Merge remote-tracking branch 'origin/NewUI_merge' into NewUI_merge
2017-09-11 23:43:46 +12:00
Haoming Yin
d49e84e6d2
Fixed a bug that race view doesn't fit in decorator.
...
- recreated a new stage and decorator to fix the bug as decorator might
not be able to be reused.
#story[1245]
2017-09-11 23:42:08 +12:00
Michael Rausch
75bf92a67f
Added map image to lobby screen
...
- Lobby screen has map of the course
- Map resizes with window
Tags: #story[1245]
2017-09-11 23:24:21 +12:00
Haoming Yin
0d7201e235
Race view is default to be full screen now and minor bug fixes.
...
- race view is force to be full screen and run in a new stage
- fixed button animations in lobby view
- polished UI element is boat customization dialog
#story[1245]
2017-09-11 23:04:41 +12:00
cir27
0197de6fe3
Drawing player icon assets but line segment was not added to repo some app crashes.
...
#implement #story[1266]
2017-09-11 22:19:08 +12:00
cir27
d79ff0f1cf
Merge remote-tracking branch 'origin/story1266_3d_model_factory' into story1266_3d_model_factory
...
# Conflicts:
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java
# src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java
2017-09-11 22:03:52 +12:00
cir27
18f36d7ea4
Added assets to identify the player. Needs to merge with 3d player specification for code side to be implemented.
...
#story[1266] #implement
2017-09-11 22:02:21 +12:00
Michael Rausch
131cd80e02
Added button sounds on hover, click and in the lobby
...
- Started playing start & lobby sounds
- Started playing button hover & click sounds
Tags: #story[1249]
2017-09-11 19:50:17 +12:00
Alistair McIntyre
3d0209300e
- Validation completely done
...
- Some documentation added.
tags : #story[1245]
2017-09-11 19:36:16 +12:00
hyi25
6b4f7eb42b
Merge develop into NewUI, and 3D
...
tags: #story[1245]
2017-09-11 18:56:26 +12:00
Kusal Ekanayake
8b9b3a31bd
Trying to start getting the 3D branch to successfully build and run on git and on computers.
...
Solving maven issues.
2017-09-11 18:50:01 +12:00
Haoming Yin
0bf83aa858
Merge remote-tracking branch 'origin/develop' into NewUI_merge
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/FinishScreenViewController.java
# src/main/java/seng302/visualiser/controllers/LobbyController.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/java/seng302/visualiser/controllers/StartScreenController.java
# src/main/resources/views/LobbyView.fxml
# src/main/resources/views/RaceView.fxml
# src/main/resources/views/StartScreenView.fxml
2017-09-11 18:15:08 +12:00
Calum
dff261cf41
Added 3D assets for a trail and generated them at regular intervals.
...
#story[1266] #implement
2017-09-11 17:16:13 +12:00
William Muir
83ee217cef
Merge branch 'Story1248_Game_App_Scaling' into 'develop'
...
Story1248 Race view scaling
# Changes
* Added listener to widthProperty and heightProperty in GameView.fxml.
* Changed some of the race view fxml hierarchy to support resizing.
# Testing
* Manual test log completed.
See merge request !70
2017-09-11 17:11:27 +12:00
William Muir
d4826739e3
Merge branch 'develop' into Story1248_Game_App_Scaling
2017-09-11 16:56:49 +12:00
William Muir
fdfb5959fa
Minor change so that boats still are checked for collision after passing the finish line
...
#story[1250]
2017-09-11 16:53:12 +12:00
Calum
878c0e0f43
Added ocean asset. Moved camera to center of race.
...
#story[1266]
2017-09-11 16:24:21 +12:00
Zhi You Tan
1ce8df976c
changed name: contentanchorpane to contentgridpane
...
#story[1248]
2017-09-11 16:08:24 +12:00
Zhi You Tan
6fcd4ae4cc
updated raceview javafx after develop merge to bring in text chat pane.
...
#story[1248]
2017-09-11 16:01:07 +12:00
William Muir
534eaee8ce
Merge remote-tracking branch 'origin/develop' into develop
2017-09-11 15:54:30 +12:00
William Muir
ab35e3506d
fixed bug
...
#story[1250]
2017-09-11 15:54:16 +12:00
Michael Rausch
1fec620427
Merged 3d branch into new UI
...
Tags: #story[1245]
2017-09-11 15:50:22 +12:00
Zhi You Tan
00100eb991
Merge remote-tracking branch 'origin/develop' into Story1248_Game_App_Scaling
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/resources/views/RaceView.fxml
2017-09-11 15:47:47 +12:00
Kusal Ekanayake
58512fdbdf
Replaced hover sound to work in .jar.
...
#story[1249]
2017-09-11 15:40:13 +12:00
Michael Rausch
76a1a3c7a0
Merge remote-tracking branch 'origin/story1266_3d_model_factory' into NewUI_merge
...
# Conflicts:
# pom.xml
# src/main/java/seng302/App.java
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/utilities/XMLGenerator.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/resources/views/RaceView.fxml
# src/main/resources/views/StartScreenView.fxml
2017-09-11 15:29:33 +12:00
William Muir
1b8c503712
fixed bug
...
#story[1250]
2017-09-11 15:29:08 +12:00
William Muir
334e13295f
fixed bug
...
#story[1250]
2017-09-11 15:24:42 +12:00
William Muir
0c4d001510
Merge remote-tracking branch 'origin/develop' into develop
2017-09-11 15:11:49 +12:00
William Muir
24a3a54ccb
Added sounds to coin pick up
...
Refactored check for token collision to move into the generic check for collision method
Created a YachtEventType enum to differentiate between collision and pickup on client side.
Client now plays a sound when they pick up a token
#story[1250]
2017-09-11 15:11:11 +12:00
Alistair McIntyre
40408cff27
-Validation on server list screen and server creation dialog done.
...
tags : #story[1245]
2017-09-11 15:08:34 +12:00
William Muir
9fcb8915c2
Added sounds to coin pick up
...
Refactored check for token collision to move into the generic check for collision method
Created a YachtEventType enum to differentiate between collision and pickup on client side.
Client now plays a sound when they pick up a token
#story[1250]
2017-09-11 14:45:04 +12:00
Kusal Ekanayake
caf910c4c5
Adjusted volume to make more balanced.
...
#story[1249]
2017-09-11 14:39:40 +12:00
Kusal Ekanayake
4f07786449
Changed the hover noise from a mediaplayer to an audio clip.
...
Fixes #50
#story[1249]
2017-09-11 14:21:47 +12:00
Alistair McIntyre
2b53e0d5b4
Validation fixed on server list screen.
...
Server List Screen done.
tags : #story[1245]
2017-09-11 13:51:29 +12:00
Calum
1210f9342b
Removed rounding in GameView that caused objects to be rendered at incorrect positions.
...
#bug
2017-09-11 11:37:50 +12:00
cir27
f136a970db
Added placeholder assets for velocity pickups.
2017-09-11 03:11:42 +12:00
alistairjmcintyre
800ae2864f
- Fixed a missing validation call.
...
tags: #story[1245]
2017-09-11 02:55:47 +12:00
alistairjmcintyre
e764caee60
- Learned how JFX Validators work and implemented them for direct connection.
...
- Aside from the error message when a server cannot be found (which is the default javafx one) I think the serverlist is pretty much done.
tags: #story[1245]
2017-09-11 02:53:41 +12:00
cir27
78b4786482
Added assets for the border and for gates. Drew them in correct locations.
...
#implement
2017-09-11 02:50:31 +12:00
cir27
e3ccb570ed
Merge remote-tracking branch 'origin/story1266_3d_model_factory' into story1266_3d_model_factory
2017-09-10 22:54:49 +12:00
cir27
470bf121a5
Added assets for borders.
2017-09-10 22:54:40 +12:00
alistairjmcintyre
f077486e22
- Added methods for validating direct connection, Port Number Complete, Host Name not Complete.
...
- Added No Servers found Message
- Found a potential bug with windows machines not running the correct service to handle Bonjour Service Addresses.
tags: #story[1245]
2017-09-10 18:24:15 +12:00
Haoming Yin
717f7558d9
Fixed issue that when go back to start screen, start view doesn't fit
...
in to the decorator properly.
- Moved start screen view initialization logic into ViewManager.
- When go back to start screen view, a new stage within the start screen
view will be initialized.
#story[1245]
2017-09-10 12:43:17 +12:00
Zhi You Tan
05236337ba
Fixed horizontal and vertical resizing not to draw larger than scene.
...
#story[1248]
2017-09-10 03:17:26 +12:00
Zhi You Tan
1b76d59acb
Removed drawGoogleMap()
...
#story[1248]
2017-09-10 02:21:30 +12:00
William Muir
02e6d2a98b
Fixed Client connection delegate bug
...
#story[1250]
2017-09-09 18:26:22 +12:00
Calum
06a4dde216
Ported game rendering to 3d environment for boats and markers.
...
#implement
2017-09-09 17:34:18 +12:00
Haoming Yin
1516e817b7
Fixed some UI bugs, and redesigned some UI elements.
...
- Changed class structure (added dialogs, cells folder)
- Changed font to Baloo as it has better font height
- Figured out a way to change the font color of max player slider thumb
- Added cursor effect when mouse hover on any button
- Fixed drop shadow bug for lobby view player cell
- Moved drop shadow effect from player cell controller to css
#story[1245]
2017-09-09 15:00:32 +12:00
William Muir
bd7ea920b6
Fixed Client connection delegate bug
...
#story[1250]
2017-09-09 14:46:42 +12:00
William Muir
4a170f8179
Merged new develop on
...
#story[1250]
2017-09-09 14:13:50 +12:00
William Muir
1f9e6154ae
Merge branch 'develop' into 1250_SendingGameObjects
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-09-09 14:02:12 +12:00
William Muir
5595e0439b
Merge branch 'Story1249_SoundsAndMusic' into 'develop'
...
Story1249 sounds and music AND text chat
## Changes
* Added music for the following parts of the game:
* Menu music
* Race music
* Finish screen music
* Added sound effects for the following events:
* Button clicking
* Button hovering (Although it is incredibly quiet)
* Cap gun when the countdown hits 00:00
* Ambient ocean noises
* Collisions (between boats and boats, marks, gates, boundaries)
* Boat rounding a mark
* Boat finishing the race
* Chat window now appears in lower right for all clients/host
* When the message is sent using the 'Enter' key or the send button, all clients/host receive the message in the senders boat colour
* There are two "cheat codes" which when types into chat give the following effect:
* ">speed x" - Will multiply all boats speeds by x
* ">finish" - Will make the race automatically finish and move to the finish screen
## Testing
* Manual test log completed
* Unit tests completed for chat cheat codes
* Cucumber tests completed for general sending of chat between clients
See merge request !69
2017-09-09 13:17:12 +12:00
Calum
08f7127b69
Altered test to hopefully fix occasional indeterministic bug that occurred.
2017-09-09 13:13:45 +12:00
William Muir
8ba28ffda0
Minor refactor moving Spawning and token creation to game state
...
#story[1250]
2017-09-09 13:11:44 +12:00
Calum
edd52a07a7
Added logger to HeartBeatThread.
2017-09-09 13:07:04 +12:00
Calum
875a6b4e98
Merge remote-tracking branch 'origin/Story1249_SoundsAndMusic' into Story1249_SoundsAndMusic
2017-09-09 13:04:00 +12:00
Calum
faefcc7938
Fixed bug with initializing race view elements. Made chat box unselectable. Only manually tested.
...
#bugs #test #implement
2017-09-09 13:03:55 +12:00
William Muir
0c956f93c8
Merge request fixes. minor refactor
...
#story[1246]
2017-09-09 12:37:31 +12:00
Calum
0e2946f20b
Added ocean object
2017-09-09 12:34:08 +12:00
Zhi You Tan
f66ef3c208
[WIP]
...
- Horizontal and vertical resizing works fine now.
- Issue: Have to implement maximum horizontal and vertical scaling.
#story[1248]
2017-09-09 03:14:10 +12:00
Michael Rausch
cf4f8813d2
re-implemented existing functionality in UI
...
- Correct player count is shown in server list
- Servers now advertise their capacity and number of players connected
- Players can click join on the servers in the server list
- Direct connect works
- Can set max players / server name in host dialog
- Server starts correctly when host clicked
- Implemented boat customization
- Implemented 'begin race button', and disabled it for players that aren't hosts
- Added countdown timer in lobby
- Fixed bug where app wouldn't close
Tags: #story[1245]
2017-09-08 18:00:09 +12:00
William Muir
e2bc613c9d
Merge request fixes
...
#story[1246]
2017-09-08 15:52:01 +12:00
cir27
c2c3c9eb53
Experimented with parallel camera in 3d gameview. Works ok for rendering boats in isometric view.
...
#test
2017-09-08 14:05:52 +12:00
cir27
cadf995bf7
Added area rounding area to mark assets.
...
#implement
2017-09-08 13:32:17 +12:00
cir27
62f139c604
Added 3D window to GameView3D to begin adding assets to. Used it to refine all 3D assets implemented by ModelFactory and manually test that they work.
...
#implement #test
2017-09-08 01:51:31 +12:00
cir27
0bf6dd9e6b
Added 3D window to GameView3D to begin adding assets to. Used it to refine all 3D assets implemented by ModelFactory and manually test that they work.
...
#implement #test
2017-09-08 01:50:56 +12:00
Calum
eed5f56690
Created factory class for making different views for 3d models of boats.
...
#implement
2017-09-07 19:23:07 +12:00
Michael Rausch
b35126ff4e
Added server list updates, and added lobby
...
- Server list updates when a server is added/removed
- Player can host a server
- Lobby view shows players connected
Tags: #pair[mra106, hyi25] #story[1245]
2017-09-07 19:20:36 +12:00
Calum
c39499cee7
Fixed 3d tests
2017-09-07 18:17:42 +12:00
Kusal Ekanayake
cff15ba07d
Added missing button click.
...
#story[1249]
2017-09-07 17:54:28 +12:00
Kusal Ekanayake
6be7c17c40
Fixed manual test bugs in sounds.
...
#story[1249]
2017-09-07 17:39:59 +12:00
Calum
64811354e3
added peters boat
2017-09-07 17:09:52 +12:00
Kusal Ekanayake
3364f8b516
Made chat history transparent.
...
#story[1246]
2017-09-07 17:02:42 +12:00
Michael Rausch
8cc725616c
Merge remote-tracking branch 'origin/Story1247_AutoDiscovery' into NewUI
...
# Conflicts:
# pom.xml
# src/main/java/seng302/App.java
# src/main/java/seng302/visualiser/controllers/StartScreenController.java
# src/main/resources/views/StartScreenView.fxml
2017-09-07 16:36:30 +12:00
Michael Rausch
0feccdc8b9
Replaced existing views with new views and controllers from the test repository.
...
Tags: #pair[mra106, ajm412] #story[1245]
2017-09-07 16:32:34 +12:00
Calum
1a755cec33
Fixed bug that caused mark arrows to be rendered on Marker id not LegNumber
...
#bugs
2017-09-07 16:25:55 +12:00
Calum
d565552fcc
Added jar files to repo
2017-09-07 15:34:38 +12:00
Calum
26a8d76f8b
Merged with remote changes
2017-09-07 14:56:08 +12:00
Calum
d87dcaa4fe
Merged with remote changes
2017-09-07 14:54:23 +12:00
Kusal Ekanayake
0b61dffe71
Fixed some docstrings to make build work.
...
#story[1246]
2017-09-07 14:50:08 +12:00
Zhi You Tan
4e69157c09
Merge remote-tracking branch 'origin/Story1248_Game_App_Scaling' into Story1248_Game_App_Scaling
...
# Conflicts:
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/resources/views/RaceView.fxml
2017-09-06 01:27:57 +12:00
Zhi You Tan
d67566e217
[WIP]
...
- changed contentAnchorPane to Grid Pane temporarily so added child will be able to resize natively
- implemented zooming when resizing
Bugs:
- horizontal resizing works as intended, but vertical resizing will result in canvas moving far too left
- need to solve the right and bottom empty space when resizing
#story[1248]
2017-09-06 01:26:12 +12:00
Kusal Ekanayake
56f1dd2efb
Reverted change, didn't work.
...
#story[1246]
2017-09-05 18:20:56 +12:00
Kusal Ekanayake
302bc91461
Tried to fix build by removing invalid '>' char.
...
#story[1246]
2017-09-05 18:17:20 +12:00
Kusal Ekanayake
488ab47c8d
Finished off chat cucumber test.
...
#story[1246]
2017-09-05 18:00:43 +12:00
Kusal Ekanayake
0650ba30e2
Fixed chat tests
...
#story[1246]
2017-09-05 17:27:34 +12:00
Calum
04518c35b0
Created new yacht shape and altered the number of lights.
...
#implement
2017-09-05 17:17:42 +12:00
Kusal Ekanayake
f33e4cc137
Added finish music and merged with text chat.
...
#story[1249]
2017-09-05 15:24:56 +12:00
Kusal Ekanayake
7a4b3f0ad9
Merge branch 'text_chat' into Story1249_SoundsAndMusic
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/StartScreenController.java
2017-09-05 14:42:20 +12:00
Kusal Ekanayake
1619c95098
Added mark rounding noise and hover button noise.
...
#story[1249]
2017-09-05 14:33:37 +12:00
Kusal Ekanayake
396098e009
Added finish noise.
...
#story[1249]
2017-09-05 13:44:14 +12:00
Calum
e4dbbd05c7
Merged with remote changes
2017-09-04 23:42:10 +12:00
Calum
a1e3ec54c7
Merge remote-tracking branch 'origin/text_chat' into text_chat
2017-09-04 23:11:02 +12:00
Calum
47f3f6e27d
Created a new chat history class that allows for rich formatting of individual messages. Current implementation allows for bold and coloured text only. Has been manually tested. Fixed 3/5 chat command tests.
...
#implement #test #story[1246]
2017-09-04 23:10:54 +12:00
Kusal Ekanayake
fce7aa4f9a
Started making a cucumber test for allchat.
...
Will need to incorporate mockito in order to mock controller input. Have commented out the tests as they are not working correctly yet.
#story[1246]
2017-09-04 19:43:05 +12:00
Calum
81afad1bcc
Wrote tests that are currently broken for sending server commands through text chat.
...
#tests
2017-09-04 14:43:13 +12:00
Calum
5026c568a7
Wrote tests that are currently broken for sending server commands through text chat.
...
#tests
2017-09-03 20:38:31 +12:00
Calum
88d1e91b6f
Added processing of input from host via chat to manually trigger race finishing or to speed up boats.
...
#implement
2017-09-03 19:18:30 +12:00
Calum
67f39e9049
Tested several methods of creating 3D assets. Added a 3D file importer to library of project and replaced some assets with temporary 32 ones to test creating 32 objects.
...
#implement
2017-09-03 16:54:53 +12:00
Michael Rausch
eb1d3f1a60
Fixed bug where discovery wasn't working under windows
...
- getLocalHost() was returning the networks public IP address, changed this to getByName() for the local IP
Tags: #story[1247]
2017-09-02 02:16:40 +12:00
Zhi You Tan
54ca12f3b6
[WIP]
...
- Updated raceview.fxml to scale race view when resize.
- Implemented a listener on game view to know the current window size.
Issues:
- Border updates with resizing until a certain size and it draws out of canvas
- Marks are not drawn within border
- Trails do not scale at all
2017-09-01 17:10:00 +12:00
Michael Rausch
3f910b8db7
Fixed JavaDoc errors by adding missing parameters
2017-09-01 16:13:18 +12:00
Michael Rausch
b346d5a706
Implemented server re-registration when a server closes / updates
...
- When a server is closed, it will disappear from the server list
- When a player joins a server, the number of spaces left will decrease
- Servers now disappear instead of duplicating
- Added tests for ServerDescription
- Added documentation for new classes
Tags: #story[1247]
2017-09-01 16:05:47 +12:00
Peter Galloway
45fa73595f
fixed being able to zoom while chatting by holding shift and then pressing z and x #story[1246]
2017-08-31 17:26:02 +12:00
Peter Galloway
01ca3f3453
tweaked formatting of chat history #story[1246]
2017-08-31 17:06:13 +12:00
Peter Galloway
ba8e333d81
fixed issue with the chat history updating weirdly (made sure it run synchronously with platform.runlater) #story[1246]
2017-08-31 16:49:12 +12:00
Peter Galloway
24d4c1df15
made chat history always scroll to the bottom after a message is sent #story[1246]
2017-08-31 16:35:51 +12:00
Michael Rausch
0c5d661995
Fixed discovery bug, implemented server list, added server parameters
...
- Resolved DNS bug by updating to a newer version of JmDNS
- Added server list, this is populated with new servers as they are discovered
- Added map name and spaces remaining to server advertisement
Tags: #story[1247]
2017-08-31 01:11:17 +12:00
Michael Rausch
262f27fa8a
Added basic auto discovery functionality
...
- Servers can advertise themselves
- Clients can detect servers on their local network
Tags: #story[1247]
2017-08-30 22:53:45 +12:00
Peter Galloway
0fcdf41419
fixed broken fps counter #story[1246]
2017-08-30 20:56:28 +12:00
Peter Galloway
4ebf7d6104
chat packets sent to server and then sent back to all clients. #story[1246]
2017-08-30 20:42:11 +12:00
Peter Galloway
353dd48829
sending chatter packets to server #story[1246]
2017-08-30 19:14:47 +12:00
William Muir
4bd7291a4a
WIP: Yachts now power up upon collecting an item
...
Power up is speed boost x2 multiplier
Lasts 10 seconds
Do not stack
#story[1250]
2017-08-29 22:11:37 +12:00
William Muir
0d0b2e59d5
WIP: Tokens works well with collection. Dissapear upon picking up across all clients.
...
Still bug with mark ordering and arrows :/
#story[1250]
2017-08-29 21:40:25 +12:00
William Muir
ace48a8404
Refactored MainServer Class in prep for better sending out of XML messages
...
All messages are now created through MessageFactory class
Minor tweaks to improve code base server side
Removed observer from Server to Client threads
#story[1250]
2017-08-29 21:23:46 +12:00
William Muir
201405d070
WIP: Marks randomly appear in course now. Mark arrows broken.
...
Something about sending raceXML during the course of the race breaks the mark rounding arrows functionallity, crashing the game.
#story[1250]
2017-08-29 19:13:48 +12:00
William Muir
dc19310849
Tokens now appear client side
...
#story[1250]
2017-08-29 17:17:06 +12:00
William Muir
1c866ea8c2
GameClient now extracts Tokens client side
...
#story[1250]
2017-08-29 16:50:31 +12:00
William Muir
23027705da
Sample Tokens are now sent out in RaceXML correctly
...
Token and TokenType class created
#story[1250]
2017-08-29 15:37:01 +12:00
William Muir
c15f13bc2c
Refactored some of the XMLGenerator code. Added tokens to the generated XML
...
Refactor not complete. Generation needs some tidying.
#story[1250]
2017-08-29 14:56:06 +12:00
Kusal Ekanayake
6ee2517f74
Added most sound functionality.
...
There is not background music and sound effects (button clicking, ocean noises, crashes for collisions). Can mute the sound and the music independently of each other from the main menu.
#story[1249]
2017-08-28 16:37:09 +12:00
Peter Galloway
75155fe481
implemented basic single client proof of concept for the chat history #story[1246]
2017-08-25 17:57:45 +12:00
William Muir
2fcff65dd6
Fixed null pointer when cant find a server
...
tags: #fix
2017-08-17 15:44:05 +12:00
William Muir
4c730ea890
Fixed null pointer when cant find a server
...
tags: #fix
2017-08-17 15:40:55 +12:00
Alistair McIntyre
a501b21d66
Merge branch 'develop' into 'master'
...
Sprint 6.0 Merge
Merge for sprint 6.0 tag to master.
See merge request !67
2017-08-17 14:59:01 +12:00
Alistair McIntyre
5fb8a0c2c1
Merge branch 'issue47_disconnect_crash_rebranch' into 'develop'
...
Issue47 disconnect crash rebranch
Fix for all disconnection issues. Fix is not robust. Need consistent interface between disconnection of ServerToClientThreads and MainServerThread.
See merge request !66
2017-08-17 14:55:45 +12:00
Alistair McIntyre
d867a4b7a2
Fixed bug, should fix disconnection issues.
...
tags : #issue[47]
2017-08-17 14:53:54 +12:00
Michael Rausch
3c91db59f3
Changed wind change variation
2017-08-17 14:49:39 +12:00
Alistair McIntyre
72a390b484
Fixed build bug.
...
tags : #issue[47]
2017-08-17 14:47:20 +12:00
Alistair McIntyre
978def4cf7
Merge remote-tracking branch 'origin/develop' into issue47_disconnect_crash_rebranch
...
# Conflicts:
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-08-17 14:36:16 +12:00
Alistair McIntyre
2331942bf9
Merge branch 'Story1124_Sparkline' into 'develop'
...
Fixing Ordering
# Changes
* Fixed ordering which was broken from a previous commit
* Removed Sparkline as we could not get it working in time
# Testing
* Manual testlog only
See merge request !65
2017-08-17 14:25:32 +12:00
Calum
d41bdfebbc
Merged Boat customization onto develop.
...
#bug #merge #refactor
2017-08-17 14:21:06 +12:00
Calum
d0565503e8
Merge branch 'develop' into issue47_disconnect_crash_rebranch
...
# Conflicts:
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/GameClient.java
2017-08-17 14:15:27 +12:00
Haoming Yin
f0c48e76e1
Merge branch 'Story80_BoatCustomization' into 'develop'
...
Story 80: Boat Customization
# Implementation
- Added Messages for Boat Customization Requests and Responses.
- Added functionality to handle Name and Boat Color Customization. (Shapes would be a next sprint thing)
# Testing
- Manually tested personally, will test correctly when boat shapes have also been implemented.
See merge request !64
2017-08-17 14:11:04 +12:00
Calum
3639e0d3ce
Fixed disconnection issues. Fix is only temporary until a consistent interface for disconnections exists.
...
#bug #implement
2017-08-17 14:10:38 +12:00
Calum
0276911b88
Fixed disconnection issues. Fix is only temporary until a consistent interface for disconnections exists.
...
#bug #implement
2017-08-17 14:02:18 +12:00
Alistair McIntyre
af3a400841
Fixed build bug.
...
tags : #story[1142]
2017-08-17 13:44:34 +12:00
Zhi You Tan
5a2a78a7d5
Bug fixes for final commit
2017-08-17 13:43:31 +12:00
Alistair McIntyre
5fc7442359
Merged Develop into branch.
...
tags : #story[1142]
2017-08-17 13:40:00 +12:00
Alistair McIntyre
39cfaf6780
Merge remote-tracking branch 'origin/develop' into Story80_BoatCustomization
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/ServerPacketParser.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/gameServer/messages/ChatterMessage.java
# src/main/java/seng302/gameServer/messages/MarkRoundingMessage.java
# src/main/java/seng302/model/ServerYacht.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/GameView.java
2017-08-17 13:31:27 +12:00
Zhi You Tan
7a11b5eb77
Merge branch 'develop' into Story1124_Sparkline
2017-08-17 13:14:08 +12:00
Alistair McIntyre
faf4600f51
Fixed some weird bug with the messages package, trying to add some small QoL changes with potential interaction bugs with the customization/lobby menu.
...
tags : #story[1142]
2017-08-17 13:13:07 +12:00
Zhi You Tan
3e383465a9
Attempted to fix sparklines, temporarily disabled them for end of sprint.
2017-08-17 13:12:09 +12:00
Alistair McIntyre
ac279583df
Small documentation changes.
...
tags: #story[1142]
2017-08-17 12:31:15 +12:00
Calum
ef2659a7b9
Merge branch 'develop' into issue47_disconnect_crash_rebranch
...
# Conflicts:
# src/main/java/seng302/visualiser/GameClient.java
# src/test/java/seng302/visualiser/ClientToServerTests/RegularPacketsTest.java
2017-08-17 12:16:14 +12:00
Calum
769d1956b3
Moved client side disconnection handling to this branch and reimplemented it with develop functionality.
...
#refactor #issue[47]
2017-08-17 12:11:36 +12:00
Haoming Yin
8ca455ed24
Fixed:
...
- Fixed regularPacketsTest unit test, which checks how regularly packets are sent from C2S thread.
- Removed misused GameClient in main server thread.
tags: #story[1124]
2017-08-17 12:03:43 +12:00
Haoming Yin
7bda2bc580
Fixed:
...
- Fixed regularPacketsTest unit test, which checks how regularly packets are sent from C2S thread.
- Removed misused GameClient in main server thread.
tags: #story[1124]
2017-08-17 11:46:14 +12:00
Haoming Yin
d7a290478d
Merge remote-tracking branch 'origin/develop' into develop
2017-08-17 11:02:54 +12:00
alistairjmcintyre
d73e4f8ec5
Fixed a build error.
...
tags: #story[1142]
2017-08-17 01:23:34 +12:00
alistairjmcintyre
6e02d3e533
Added some general UI improvements such as autofilling the color field of the form, and looked at how best to deal with response packets, as it should be part of the spec.
...
tags: #story[1142]
2017-08-17 01:20:16 +12:00
Calum
7b4a70817b
Merged onto develop.
...
#mergre #refactor
2017-08-17 01:03:14 +12:00
Calum
87acce71ea
Merge branch 'develop' into story1118_map_arrows
...
# Conflicts:
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/model/RaceState.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-08-17 00:52:41 +12:00
Calum
95b1c8a01f
Arrows now work as intended. Case added for interior angles.
...
#implement #story[1118]
2017-08-17 00:43:07 +12:00
Zhi You Tan
dfd421c3b7
Merge branch '1124b_Fixing_Update_Order' into 'develop'
...
Updating Yacht Positions / Finish Screen
# Change Log
* Yachts now update their position on the side bar as they pass marks
* Finish screen is now displayed correctly at end of race, populated by races
# Testing
* Manual test log performed
See merge request !63
2017-08-17 00:11:13 +12:00
William Muir
4596f1e0f8
Finish screen all done, updates during race
...
tags: #story[1124] #pair[wmu16, cir27]
2017-08-16 23:42:07 +12:00
William Muir
a59d06fbbf
Finish screen
2017-08-16 23:36:45 +12:00
William Muir
65286f273b
Working ordering for in game AND race finish screen.
...
List in RaceState holds a sorted list of yachts.
A Listener is added to this list, listening for a permutation change, on perm change, sorts the list by comparitor of leg number of each yacht (stable sort)
2017-08-16 23:22:58 +12:00
William Muir
9727e86249
Merge remote-tracking branch 'origin/story1118_map_arrows' into 1124_Fixing_Order_And_Finish_Screen
...
# Conflicts:
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/main/resources/server_config/xml_templates/race.ftlh
2017-08-16 22:40:32 +12:00
William Muir
db614fe845
Initial commit for Fixing order
2017-08-16 21:16:27 +12:00
Calum
85899e3fbe
Merged with develop functionality.
2017-08-16 21:11:34 +12:00
Michael Rausch
87d6799c10
Re-added wind speed & direction variations
...
- Wind speed & direction are randomly updated
- Removed two duplicate threads ;)
Tags: #story[1124]
2017-08-16 20:48:37 +12:00
Alistair McIntyre
67f0c213c2
Everything works. Needs a bit of polish, and possibly look at boat shapes next.
...
tags: #story[1142]
2017-08-16 20:38:11 +12:00
Calum
c103595bba
Merge branch 'develop' into story1118_map_arrows
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/model/RaceState.java
# src/main/java/seng302/visualiser/GameClient.java
2017-08-16 20:34:27 +12:00
Calum
86a7c2565c
Arrows now rendered in correct orientation but rounding arc sometimes inverted.
...
#implement #story[1118]
2017-08-16 20:29:56 +12:00
Calum
21e6819f16
Arrows now rendered in correct orientation but rounding arc sometimes inverted.
...
#implement #story[1118]
2017-08-16 20:17:25 +12:00
William Muir
28569506f0
Merge remote-tracking branch 'origin/develop' into develop
2017-08-16 20:09:20 +12:00
William Muir
dad2ebf693
Fixed double thread issue! :D
2017-08-16 20:09:05 +12:00
Alistair McIntyre
02a7b804c1
Boat Names Change. Colors Change too. Updates clients during lobby when a change is made.
...
tags: #story[1142]
2017-08-16 19:31:27 +12:00
Peter Galloway
9dbb31dcef
Merge branch 'Story40_Zooming' into 'develop'
...
Story40 zooming
# Zooming and Tracking
## Changes
* Boats can now be selected by clicking and selecting on the drop down menu
* Selected boats can now be tracked when the zoom level is increased
* Zoom in with the 'z' key and zoom out with the 'x' key
## Testing
* Manual testing logged in doc
* No cucumber tests made for this story
## Bug Fixes
* Fixed the sails animation bug
See merge request !62
2017-08-16 18:25:58 +12:00
Kusal Ekanayake
a932f41cc2
Removed unused boolean in boat objects
2017-08-16 18:19:55 +12:00
Kusal Ekanayake
3570a3d2eb
Removed unneeded imports
2017-08-16 18:16:55 +12:00
Kusal Ekanayake
85852df176
Modified limits to zooming
...
#story[1121]
2017-08-16 18:06:39 +12:00
Alistair McIntyre
6d045e9976
Merge branch 'develop' into Story80_BoatCustomization
...
# Conflicts:
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/LobbyController.java
2017-08-16 17:59:11 +12:00
Alistair McIntyre
4fc00f8a3c
Boat names now change, just the issue of the lobby not updating unless another person joins/leaves to try and fix.
...
tags: #story[1142]
2017-08-16 17:57:22 +12:00
Kusal Ekanayake
9c2bac36b6
Merge branch 'develop' into Story40_Zooming
2017-08-16 17:27:09 +12:00
Kusal Ekanayake
8501fc0b6d
Added limits to zooming
...
#story[1121]
2017-08-16 17:25:51 +12:00
Michael Rausch
e9e7f306cd
Merge branch 'Story1117_Course_Boundary_Collision' into 'develop'
...
Checked if a boat has crossed the boundary/course limit, if so, bounce the boat back.
# Boundary crossing detection
* if a boat has crossed the boundary, it will be bounced back to where it has came from
# Testing
* Manual testing has been done.
* Boats have bounced back when collides with other boats, mark or boundary.
#story[1117] #pair[hyi25, zyt10]
See merge request !60
2017-08-16 17:25:14 +12:00
Michael Rausch
fa68a5fdff
Fixed commented out test
...
#story[1117]
2017-08-16 17:23:52 +12:00
William Muir
07a39722fb
Minor bug fix to velocity calculation
2017-08-16 17:23:14 +12:00
William Muir
1d4ab0e1fa
Merge remote-tracking branch 'origin/develop' into develop
2017-08-16 17:22:14 +12:00
William Muir
653651f97f
Minor bug fix to velocity calculation
2017-08-16 17:22:00 +12:00
Haoming Yin
b1ba6e729a
Merge branch 'StartScreen' into 'develop'
...
Start screen
## Changes
* Race timer now works
* Lobby switches to race view at T-5 seconds
* Updated lobby title to show race name
## Testing
* Manual testing completed
* No unit or cucumber testing as this is mostly UI code
See merge request !61
2017-08-16 17:12:17 +12:00
Haoming Yin
99685d76a9
Merge remote-tracking branch 'origin/develop' into develop
2017-08-16 16:55:53 +12:00
Michael Rausch
711c94001b
Fixed game crash, and improved timer
...
- Fixed the null pointer exception that happened on slower computers
- Made the timer start counting down when the host clicks ready
Tags: #story[1109]
2017-08-16 16:34:31 +12:00
Zhi You Tan
7f3d66d01d
Checked if a boat has crossed the boundary/course limit, if so, bounce the boat back.
...
#story[1117] #pair[hyi25, zyt10]
2017-08-16 16:33:14 +12:00
Alistair McIntyre
1db75a8ae4
Request Messages now sending to server, need to update game and send response packet.
...
tags: #story[1142]
2017-08-16 14:54:50 +12:00
Kusal Ekanayake
7b9d28ade9
Progress made on the improper tracking of boats (boats aren't being correctly centered).
2017-08-16 14:51:52 +12:00
Michael Rausch
5843fc9212
The merge went well!!
...
Tags: #story[1109]
2017-08-16 14:51:44 +12:00
Calum
3542c646f8
Marker class can now store and show multiple arrows sequentially
...
#implement #story[1118]
2017-08-16 14:51:05 +12:00
Michael Rausch
8fb5ea2223
Merge branch 'develop' into StartScreen
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/utilities/StreamParser.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/controllers/LobbyController.java
2017-08-16 14:31:14 +12:00
Kusal Ekanayake
958c1e216f
Fixed sail toggling issues and test.
2017-08-16 14:30:37 +12:00
Kusal Ekanayake
100689a20b
Merged develop onto zooming for easier merge later on.
...
#story[1121]
2017-08-16 13:15:15 +12:00
Kusal Ekanayake
2da887e677
Merge branch 'develop' into Story40_Zooming
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/test/java/steps/ToggleSailSteps.java
2017-08-16 13:13:39 +12:00
Alistair McIntyre
bd213bcd9e
Merge branch 'develop' into Story80_BoatCustomization
2017-08-16 13:06:31 +12:00
William Muir
bf016356a6
Finish screen now displays correctly on finishing.
...
GameState update now checks for finishing the race
Can now go back to main menu from finish screen
Labeled all threads for better debugging
Still need to implement race list ordering and finish screen ordering
2017-08-16 13:04:34 +12:00
William Muir
76a750a764
Moved sendRaceStatus Message out of S2C Thread into MS Thread (minor refactor)
2017-08-16 11:53:29 +12:00
William Muir
000d562ffe
SailIn / out animation on client is now correct again
2017-08-16 11:27:46 +12:00
Haoming Yin
d02f2385dd
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# src/main/java/seng302/model/ClientYacht.java
# src/main/java/seng302/visualiser/GameView.java
# src/test/java/seng302/visualiser/map/BoatSailAnimationToggleTest.java
# src/test/java/steps/ToggleSailSteps.java
2017-08-16 10:11:58 +12:00
Haoming Yin
a5261494cd
Merge remote-tracking branch 'origin/1124_broadcast_mark_rounding_message' into 1124_broadcast_mark_rounding_message
2017-08-16 10:06:25 +12:00
Calum
ac47e9d88a
Game state now updates based on boat position. Arrows drawn as boat travels course. Currently do not point in correct direction, also the sparkline does not work.
...
#bug #refactor #implement #story[1118]
2017-08-16 03:51:48 +12:00
Calum
7329f7dc65
Merge branch 'develop' into story1118_map_arrows
2017-08-16 01:35:15 +12:00
Calum
7c5f146b11
Merge to integrate develop with separated Yacht classes. Functionality from this branch is not yet completed.
...
#refactor
2017-08-16 01:23:38 +12:00
Calum
e3fbbd4590
Fixed sails in and out test.
...
#bug #test
2017-08-16 01:19:34 +12:00
Calum
dc8baa09a3
Re-implemented collision tests.
...
#test #bug
2017-08-16 01:17:40 +12:00
Calum
720ce0ae5b
Merged with develop. Moved all collision logic into game state.
...
#refactor
2017-08-16 01:04:16 +12:00
Calum
a7a667b4bc
Merge branch 'develop' into 1124_switching_to_finish_screen
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/visualiser/GameClient.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
# src/test/java/seng302/visualiser/ClientToServerTests/RegularPacketsTest.java
2017-08-15 23:45:50 +12:00
Calum
4e68cf31cf
Fixed finish screen switch
...
tags: #fix
2017-08-15 23:30:27 +12:00
Zhi You Tan
d03460d69e
Implemented boat tracking when boat is selected by either clicking or selecting from sidebar combo box. Clicking tracked boat will cancel tracking, but using combobox will always result in one boat being selected.
...
#story[1121] #pair[wmu16, zyt10]
2017-08-15 23:16:25 +12:00
Peter Galloway
50baf6f85b
implemented race finish functionality, finish screen not loading properly yet #story[1124]
2017-08-15 20:48:51 +12:00
William Muir
23a04facbe
ServerYachts now send now have their own boat status.
...
This allows clients to know when this boat has finished
tags: #story[1124]
2017-08-15 20:24:51 +12:00
Kusal Ekanayake
7fbecc8b3d
Fixed juttery movements when zooming and sometimes tracking.
...
Need to look into getting the boat propery fixed in the center.
#story[1121]
2017-08-15 19:14:16 +12:00
Alistair McIntyre
9cb5956f3c
Updated lobby controller to pass the player ID through, and the lobby view to have a customize button.
...
tags: #story[1142]
2017-08-15 16:48:23 +12:00
Alistair McIntyre
366ebb3adb
Merge branch 'Story66_Collision' into 'develop'
...
Collision branch merging to develop
# Change log
* Added yacht-mark collision and yacht will be pushed back upon collision.
* Added yacht-yacht collision and both yachts will be pushed back upon collision.
* Updated yacht map position initialisation. Yachts will all be spawned behind start line with a distance apart from each other.
* Added a collision visual alert when collision packet is received.
* Added two extra colours to support for 8 boats.
# Testing
* Junit tests for yacht-yacht collision.
* Manual testing for yacht map position initialisation
* Yacht spawned apart from each other.
* Yacht will spawn behind start line even if start line is different direction.
See merge request !59
2017-08-15 15:53:36 +12:00
Haoming Yin
458bd5408f
Merge remote-tracking branch 'origin/1124_broadcast_mark_rounding_message' into 1124_broadcast_mark_rounding_message
2017-08-15 15:21:10 +12:00
Calum
c00d165f47
Merge remote-tracking branch 'origin/1124_broadcast_mark_rounding_message' into 1124_broadcast_mark_rounding_message
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
2017-08-15 15:13:40 +12:00
Calum
d2bb15471a
Changed the velocity equation for boats to handle outlying scenarios such as 0 velocity.
...
#bug
2017-08-15 15:12:39 +12:00
Zhi You Tan
c0cd260610
Fixed junit fail
2017-08-15 15:06:11 +12:00
Haoming Yin
6a9357f598
Merged Develop onto refactored yacht branch
...
tags: #story[1124] #pair[hyi25, wmu16]
2017-08-15 15:04:35 +12:00
Haoming Yin
6909f99773
Merge remote-tracking branch 'origin/develop' into 1124_broadcast_mark_rounding_message
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/visualiser/GameView.java
2017-08-15 14:58:13 +12:00
Zhi You Tan
ce5424cc79
Fixed develop merge and now collision works
2017-08-15 14:53:15 +12:00
Haoming Yin
c125708a4a
Final commit for yacht refactor
...
tags: #story[1124] #pair[hyi25, wmu16]
2017-08-15 14:49:16 +12:00
Haoming Yin
2dc0ba07d9
WIP: Second commit for seperating server and client yacht classes
...
tags: #story[1124]
2017-08-15 14:30:39 +12:00
Zhi You Tan
2a3231d334
Merge remote-tracking branch 'origin/develop' into Story66_Collision
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/model/mark/MarkOrder.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-08-15 14:30:01 +12:00
Haoming Yin
d6a436d2eb
WIP: Initial commit for seperating server and client yacht classes
...
tags: #story[1124]
2017-08-15 14:18:48 +12:00
William Muir
baacd8a9c0
Refactor. Taken Rounding logic out of yacht and into game state.
...
tags: #story[1124]
2017-08-14 23:52:06 +12:00
William Muir
e1dddd317d
WIP: Minor fixes
2017-08-14 17:57:41 +12:00
Peter Galloway
b9ae9c4730
made server send appropriate racestatus flags in the race status packet #pair[mra106, ptg19] #story[1109]
2017-08-14 17:55:53 +12:00
Kusal Ekanayake
fab5f9229f
Got the boat's to track and center correctly.
...
As well as allowing selecting different boats to track them, doesn't work as intuitively as I would like but will need to sort out a boat selection feature first made specifically for the selection of only one boat.
#story[1121]
2017-08-14 17:27:14 +12:00
Peter Galloway
ff92262a78
fixed race clock countdown/count up #story[1109]
2017-08-14 16:32:50 +12:00
William Muir
a4547e12cb
Merged develop into this branch and resolved conflicts
...
tags: #story[1124] #pair[wmu16, hyi25]
2017-08-14 16:21:18 +12:00
William Muir
1a39b6e4a3
Merge branch 'develop' into 1124_broadcast_mark_rounding_message
...
# Conflicts:
# src/main/java/seng302/gameServer/ServerToClientThread.java
2017-08-14 16:16:04 +12:00
William Muir
58446ffaed
MarkRounding Message now sent out correctly.
...
Added submark seqID attribute to each mark of a compound mark from parsing xml
Added Rounding side attribute to each individual mark as read from the xml
RoundingSide enum now has a method to get Enum from String literal
Now store the closest mark to each yacht in each update for purpose of knowing which mark they round
Minor code tidying, Added logger to serverToClientThread, removed 'serverLog' method
removed obsolete code
2017-08-14 16:11:32 +12:00
Alistair McIntyre
1f09005147
Message types for Request and Response created, and Messages for them also created.
...
tags: #story[1142]
2017-08-14 15:30:42 +12:00
Alistair McIntyre
3754b71f4d
Merged updated develop into branch.
...
tags: #story[1142]
2017-08-14 14:31:02 +12:00
Alistair McIntyre
1d2222b599
Merge branch 'develop' into Story80_BoatCustomization
2017-08-14 14:23:05 +12:00
Alistair McIntyre
89ceab0c4b
Merge branch 'Story64_SailsAnimations' into 'develop'
...
Story64 sails animations
The sail animations for the boats.
The sail should follow the boat when the boats heading nears downwind and upwind. The shift key should make the sail have a squiggly animation and flow into the wind. A cucumber test has also been created and could be looked into for more stories.
Unintentionally merged in parts of the zooming story. (Basic zooming in and out)
See merge request !56
2017-08-14 14:19:00 +12:00
Alistair McIntyre
76dabb8138
Merge remote-tracking branch 'origin/Story64_SailsAnimations' into Story64_SailsAnimations
...
# Conflicts:
# src/test/java/steps/ToggleSailSteps.java
2017-08-14 14:17:10 +12:00
Alistair McIntyre
8b543488e3
Fixed faulty develop merge and completed manual testing before merging back into develop.
...
tags: #story[1111]
2017-08-14 14:15:34 +12:00
Alistair McIntyre
c52c345e53
Merge branch 'develop' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/visualiser/GameClient.java
2017-08-14 14:04:53 +12:00
Alistair McIntyre
9420717b44
Added Messages to MessageType, continued working on request.
...
tags: #story[1142]
2017-08-14 13:38:41 +12:00
Kusal Ekanayake
9c1fe72f6b
Merge and tests fix
2017-08-14 13:35:18 +12:00
Kusal Ekanayake
2e892f35ea
Merge branch 'develop' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/visualiser/GameClient.java
2017-08-14 13:32:57 +12:00
Alistair McIntyre
bedd742c93
Started on Request/Response packets for the Boat customization to begin the boat customization process.
...
tags: #story[1142]
2017-08-14 13:26:51 +12:00
Kusal Ekanayake
add6856727
Merge remote-tracking branch 'origin/Story64_SailsAnimations' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
2017-08-14 13:22:56 +12:00
Kusal Ekanayake
4dc6b2af2b
Merge fix
2017-08-14 13:20:15 +12:00
Kusal Ekanayake
e65558b8ac
Merge branch 'develop' into Story40_Zooming
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/visualiser/GameClient.java
2017-08-14 13:17:39 +12:00
William Muir
e4cc5a0950
Fixing develop (sort of)
2017-08-14 12:52:58 +12:00
William Muir
4b4f8a25a3
Merge branch 'issue38_irregular_key_event_packets' into 'develop'
...
Issue38 irregular key event packets
A timed loop is now created on button press for sending out packets when a button is held down.
Removed the lists in LobbyController and replaced them with text objects to avoid the nested lists of single element lists.
Unit tests are in tests.java.seng302.visualiser.ClientToServerTets.RegularPacketsTest
**EDIT -** Tests fail due to some kind of error with reading from sockets in VM environment. Unable to fix at present.
See merge request !57
2017-08-14 12:49:52 +12:00
Zhi You Tan
c77adf385e
Terminating client thread before server thread to prevent alert box popping up
2017-08-14 11:21:33 +12:00
Zhi You Tan
9b7f4a93d8
Merge remote-tracking branch 'origin/issue38_irregular_key_event_packets' into issue38_irregular_key_event_packets
2017-08-14 11:02:19 +12:00
Zhi You Tan
e780b47160
Fix javafx error on ci
2017-08-14 11:02:07 +12:00
Haoming Yin
028fc44dce
Yacht now extends observable and can notify server to client thread to broadcast message.
...
#story[1124]
2017-08-14 10:48:11 +12:00
cir27
a185c9dc96
Implemented a factory class that creates mark arrows as needed. Needs to integrated with the real world data and tested to work. Works with all test data so far.
...
#implement #story[1118]
2017-08-14 03:44:46 +12:00
Calum
52e10997f1
Build issues caused by vm unable to open socket connections. Leaving as is for now.
...
#bug
2017-08-13 21:07:21 +12:00
Calum
f2f750298c
Added print statements for determining where javaFX is accessed from in the test.
2017-08-13 21:05:28 +12:00
Calum
1755b00079
Unncommented test to see if it breaks the build at remote repo.
2017-08-13 20:59:03 +12:00
Calum
a844585faf
Empty tests to check where bug is occuring
2017-08-13 20:54:13 +12:00
Calum
b7fe79a5cc
Attempted fix for build issues due to javaFX toolkit not being initialized.
2017-08-13 20:44:23 +12:00
Calum
2d5492601f
Fixed build issues caused by changes to a yacht step turn constant.
...
#bug
2017-08-13 20:40:18 +12:00
Calum
0ee12021e2
Fixed bug that stopped clients from getting updated xml data.
...
#issue[46] #bug
2017-08-13 20:29:10 +12:00
Calum
6218d5506b
Fixed bug that stopped clients from getting updated xml data.
...
#issue[48] #bug
2017-08-13 20:24:03 +12:00
Calum
d79b0421c2
Fixed merged conflicts with merge onto develop.
...
#bug
2017-08-13 19:00:06 +12:00
Zhi You Tan
0b978593d4
Solved the fps counter zoom together with canvas problem. Workaround used was changing fps counter on game view to race view.
...
#story[1117] #pair[ptg19, zyt10]
2017-08-13 18:52:42 +12:00
Calum
8cb5b8caec
Merge branch 'develop' into issue38_irregular_key_event_packets
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/ServerPacketParser.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/GameClient.java
2017-08-13 18:44:34 +12:00
Calum
2093e79b6a
Rather than a high frequency loop sending all packets a low frequency loop is made then destroyed on button press for sending turn packets. This means a fast response time on button press but fewer packets sent.
...
#implement #issue[38]
2017-08-13 18:38:24 +12:00
Kusal Ekanayake
8ec6490627
Started trying to get the zoomed in gave view to follow the boat.
...
Can easily make the boat stay put at the origin. can make it perfectly center, also weary of the weird jittery effect that is present when tracking. Tracking is active when the zoom scale is greater than 1.
#story[1121]
2017-08-13 17:02:35 +12:00
Kusal Ekanayake
0a7a9018f3
Merge branch 'develop' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
2017-08-13 15:27:25 +12:00
Zhi You Tan
93cb0ca600
Updated yacht-yacht collision to push back both yacht.
...
Tweaked acceleration to increase time to top speed.
#story[1117] #pair[ptg19, zyt10]
2017-08-13 15:14:14 +12:00
Kusal Ekanayake
25c2de63a2
Working cucumber tests for sails toggle.
...
When sails in will send a sails out message when sails out will send a sails in message and then checks for the new status of the sail
#story[1111]
2017-08-13 14:55:33 +12:00
Kusal Ekanayake
2411a3cc2c
Merge branch 'develop' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
2017-08-13 14:34:42 +12:00
Zhi You Tan
fda233f5ad
Merge branch 'Story71_TackAndGybeSmoothly' into 'develop'
...
Story 71 Tack/Gybe, Story 65 VMG Autopilot
# Implementation
- Added autopilot functionality to move boat towards a given heading with a single function call.
- Added functionality to move boat from one side of the wind to the other (tack/gybe) with a single button press.
- Added functionality to move boat to correct VMG from polars with single button press.
- Pressing a button a second time will disable the autopilot, as will pressing the Upwind/Downwind keys.
# Testing
- Fairly simple JUnit testing for a set of beginning headings and expected ends for the autopilot
- Unsure how cucumber testing would actually be better than simple junit testing in this case.
See merge request !55
2017-08-13 14:22:28 +12:00
Zhi You Tan
c58cb1a476
WIP: Researched and implemented a simple right of way calculation (might be wrong).
...
#story[1117]
2017-08-11 23:57:27 +12:00
Michael Rausch
d2fd9ebaea
Started work on start screen
...
- Server now sends out race start status messages during lobby & pre-start stages
- Added timer in lobby
Tags: #story[1109]
2017-08-11 19:03:57 +12:00
Zhi You Tan
fda6625256
Merge remote-tracking branch 'origin/develop' into Story66_Collision
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/model/mark/MarkOrder.java
# src/main/java/seng302/visualiser/GameClient.java
2017-08-10 20:23:56 +12:00
alistairjmcintyre
6ddaaa0dfa
Removed extra print statement from test.
2017-08-10 20:18:36 +12:00
William Muir
55c22fa7e2
Merge branch 'MessageExtensions' into 'develop'
...
Message extensions
## Changes
* Implemented new Client<->Server handshake protocol
## Testing
* Manually tested as tests cannot be simulated in code. The following cases were tested
* Client connects normally with empty lobby
* Client connects normally with one other player in lobby
* Client responds to lobby full error
* Client responds to general error
See merge request !54
2017-08-10 20:17:50 +12:00
Michael Rausch
a7b8b0dbc3
Removed redundant input & output streams
2017-08-10 20:15:08 +12:00
Zhi You Tan
7e1686a980
Packets are sent out when collision happens and receiver is able to interpret and display as visual alert. Updated visual alert to looks better.
...
- Created yacht event code message to be sent out as packet.
- Added observers to main server thread on yacht so when collision detected, main server thread will send out yacht event message to all server to client threads.
- Updated collision visual alert using circle and animation timer.
#story[1117]
2017-08-10 19:50:30 +12:00
Alistair McIntyre
32b231e78a
Added testing for the vmg autopilot
...
tags: #story[1107]
2017-08-10 19:19:41 +12:00
Michael Rausch
3ad37faedc
Merge branch 'develop' into MessageExtensions
2017-08-10 19:01:46 +12:00
Michael Rausch
09c4f98056
Implemented new client - server handshake protocol
...
- Implemented new packet types
- Changed server & client logic to use new protocol
Tags: #story[1124] (Issue 39)
2017-08-10 19:01:30 +12:00
Alistair McIntyre
1c2870649a
Added testing for the tack/gybe settings.
...
tags: #story[1105]
2017-08-10 18:58:38 +12:00
Alistair McIntyre
a2ee4411be
Merge branch 'develop' into Story71_TackAndGybeSmoothly
2017-08-10 17:59:19 +12:00
Alistair McIntyre
a23352ef85
Merge branch 'develop' into Story71_TackAndGybeSmoothly
2017-08-10 17:59:10 +12:00
Alistair McIntyre
f9d5bd10b1
Merge branch 'develop' into Story71_TackAndGybeSmoothly
2017-08-10 17:58:19 +12:00
William Muir
0b8ad137b3
Minor fixes for merge
...
#story[1124] #pair[wmu16, hyi25]
2017-08-10 17:47:24 +12:00
Alistair McIntyre
a746191dba
VMG works correctly, auto pilot is interupted by a repeated keypress or an upwind/downwind press.
...
tags: #story[1105]
2017-08-10 17:46:28 +12:00
Michael Rausch
1772d1c05e
Merge branch '1124_Mark_Rounding_Implementation' into 'develop'
...
1124 mark rounding implementation
# ChangeLog
* Implemented Mark Rounding Algorithm so the server acknowledges when boats pass around and through marks / gates
* Compound Mark class changed so that it has one constructor which takes a list of Mark objects
* GeoUtility has had many methods added to it for purposes of deducing mark rounding
# Testing
* JUnit tests done for GeoUtility Class
* JUnit tests done for CompoundMark Class
* Test class removed for Yacht Class as no longer testable
* Manual test-log entry made for mark rounding in game
See merge request !53
2017-08-10 17:20:33 +12:00
William Muir
1d7b527130
Tidied code. Added tests
...
#story[1124] #pair[wmu16, hyi25]
2017-08-10 16:45:30 +12:00
Alistair McIntyre
430779c943
Boat auto pilots correctly for tacking/gybing. Needs proper testing.
...
#story[1105]
2017-08-10 14:53:24 +12:00
William Muir
9c79897e01
Tidied code, added MidPoint to CompoundMark class
...
Compound Mark class is now constructed with a list of marks.
A mid point is created on its construction for use in Geo Calculations
#story[1124] #pair[wmu16, hyi25]
2017-08-10 13:58:32 +12:00
Michael Rausch
07386ed2db
Improved boat bounce-back calculation
...
- Changed boat bounce back send the boat n meters in the opposite direction.
- Improved test to use the minimum of yacht and mark collision distances
Tags: #story[1117]
2017-08-10 13:01:31 +12:00
William Muir
abb15f6edf
Fixed Mark rounding Algorithm
...
Algorithm now knows when a player has to round a gate or just pass right through
#story[1124] #pair[wmu16, hyi25]
2017-08-10 12:08:03 +12:00
William Muir
87f2f1fe63
Fixed Mark rounding Algorithm
...
Algorithm now knows when a player has to round a gate or just pass right through
#story[1124] #pair[wmu16, hyi25]
2017-08-10 12:07:47 +12:00
William Muir
249ad9e5c0
Fixed Mark rounding Algorithm
...
Algorithm now knows when a player has to round a gate or just pass right through
#story[1124] #pair[wmu16, hyi25]
2017-08-10 12:02:19 +12:00
alistairjmcintyre
9d02d2fbea
Implemented a fairly simple auto pilot setting for the yacht, on update if the boat is set to autopilot it will adjust the heading towards the desired heading. Needs some refinement.
...
#story[1105]
2017-08-10 02:04:51 +12:00
Michael Rausch
b1598ccb0f
Changed testUpdateYachtWithCollision to use MARK_COLLISION_DISTANCE
...
Changed testUpdateYachtWithCollision to use MARK_COLLISION_DISTANCE constant.
#story[1117]
2017-08-09 22:36:34 +12:00
Michael Rausch
08304f9c3e
Fixed failing test
2017-08-09 22:05:49 +12:00
Michael Rausch
4cc48a355e
Added mark collisions
...
- Boats now collide with marks
- Added method to MarkOrder to get all marks
- Reduced the frequency at which collisions are detected. This fixed some performance issues
- Added method to bounce the boat off a mark
Tags: #story[1117]
2017-08-09 21:57:50 +12:00
Calum
2c5fddb695
Implemented zooming and clipping of race border. Implementation is still hackish.
...
#pair[ptg19, cir27] #story[1121]
2017-08-09 16:56:46 +12:00
Calum
126d8ea870
Added factory class for producing mark arrows.
...
#story[1118]
2017-08-09 15:24:32 +12:00
Calum
30a6cb98ec
Action packets now sent at regular 20ms intervals
...
#issue[38] #implement
2017-08-09 14:03:21 +12:00
Zhi You Tan
8813d06010
Created a simple red blink on a top of a yacht given source id.
...
Created and updated methods reading yacht event packet to translate to collision alert on visualiser.
WIP: sending yacht event packet to inform collision
#story[1117]
2017-08-09 01:26:59 +12:00
Kusal Ekanayake
0fbca89030
Merge branch 'develop' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/model/Yacht.java
2017-08-08 19:45:08 +12:00
Kusal Ekanayake
421ef3c65a
Started progress on zooming, can now use z and x keys to zoom into map.
...
Nothing scales correctly asides from the map itself (the boats stay in the same position).
#story[1121]
2017-08-08 19:41:51 +12:00
Zhi You Tan
5937f8b640
Merge remote-tracking branch 'origin/develop' into Story66_Collision
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/model/Yacht.java
2017-08-08 17:04:34 +12:00
Zhi You Tan
5ec67d0b80
Added junit for update yacht (after collision implementation). Removed another version of initialise boat positions.
...
#story[1117]
2017-08-08 16:51:29 +12:00
Kusal Ekanayake
941febaf62
Tried to fix cucumber tests, getting closer.
...
#story[1111]
2017-08-08 16:31:27 +12:00
William Muir
a545e9dbc3
Removing '>' characters from docstrings to fix build
...
Note: This is probably a XML style guid thing and is stupid. Can probably fix this
2017-08-08 16:14:13 +12:00
William Muir
b0e7dddaf3
Fixed gate passing algorithm
...
boats now must pass through the correct way. This works for start in-race and finish gates
Refactored yacht algorithm code for better readability
Logging function added or seeing mark roundings occur
tags: #story[1124] #pair[hyi25, wmu16]
2017-08-08 15:58:13 +12:00
Haoming Yin
ed0a783374
Fixed the bug that boats could round over a gate but still "across" it. Added unit test to ensure the algorithm works.
...
tags: #story[1124]
2017-08-08 10:42:36 +12:00
Kusal Ekanayake
97696cc95b
Started work on cucumber tests. Trying to sort through threads, getting inconsistent results.
...
#story[1111] #pair[kre39,ptg19]
2017-08-07 17:54:34 +12:00
William Muir
4375b73257
Implemented algorithm for checking if boat passes through a mark.
...
Mark rounding works for whole course (WITH BUGS)
Still some gate logic to work out.
Moved gate function to GeoUtil class
tags: #story[1124] #pair[hyi25, wmu16]
2017-08-07 17:28:12 +12:00
Kusal Ekanayake
f97b18d594
Sailsin graphics moving and working as expected.
...
#story[1111] #pair[kre39,ptg19]
2017-08-07 16:48:30 +12:00
Kusal Ekanayake
c7857872ce
Luffing sails animation working correctly, working on sailsin animation now.
...
#story[1111] #pair[kre39,ptg19]
2017-08-07 15:24:01 +12:00
Zhi You Tan
79105a1bdc
Created a simple collision detection by iterating each boats per update. Working but sequential checks can be costly.
...
#story[1117]
2017-08-07 12:01:26 +12:00
Zhi You Tan
a4b22190c0
Changed the spawn point to behind start line and calculated quadrant to make sure yachts spawn behind start line in different map scenario.
...
#story[1117]
2017-08-07 11:50:07 +12:00
Calum
a3ce5998ff
Action packets now sent at regular 20ms intervals
...
#issue[38] #implement
2017-08-07 10:58:07 +12:00
William Muir
7f0329dda6
WIP: Implemented basic mark rounding algorithm.
...
Removed RacePosition class. Instead marks are just grabbed from the mark order class when necessary.
No marks are stored as an attribute in the yacht class but the 'currentMarkSeqID' which is used to get current, and surrounding marks.
Works for all marks in between but not including starting and finishing gate as no angle can be made with them. Still to work out how to implement this
#story[1124]
2017-08-07 00:23:54 +12:00
Calum
8a40119a98
Action packets now sent at regular 20ms intervals
...
#issue[38] #implement
2017-08-06 22:17:08 +12:00
Zhi You Tan
a470cb66a2
Updated initialise boat function so it can now initialise boats with distance apart in meters.
...
Created a second prototype function which is more testable compared to the initial design. New function takes in parameters (starting marks, yacht starting position, yacht) and initialise yacht correctly with position.
#story[1117]
2017-08-06 21:16:14 +12:00
Kusal Ekanayake
ecf2c52cfa
Added tests, and sails to all clients.
...
#story[1111]
2017-08-06 15:43:22 +12:00
Haoming Yin
43788bd153
Added a method to test if a geo point is located in a triangle which is formed by other three geo points.
...
The method helps to check the mark rounding.
Also unit tests have been done for this method.
tags: #story[1124]
2017-08-06 12:36:57 +12:00
Zhi You Tan
81c2a8e0fd
WIP: Added test initialise boat position test. Corrected ColorsTest after addition of two new colours.
2017-08-05 23:59:58 +12:00
William Muir
e90a0ce435
Merge branch '1124_Mark_Sequence_From_RaceXML' into 'develop'
...
Loading mark sequence from RaceXML
# Loading mark sequence from RaceXML
## Change Log
1. Added MarkOrder class
* Mark order is read from the generated RaceXML and stored
* Added .getNextMark() to get the next mark in the race
* Added .equals() and .hashCode() for Marks
* NEW: Added RacePosition class to hold players position in the race
* NEW: Fixed issue where the duplicates weren't stored in the mark order
## Testing
* Unit tests in models/MarkOrderTest.java
## Acceptance Criteria
* Use the mark sequence in the raceXML
* Met by change log item (1)
* Store relevant mark details with each participating boat (Last mark, next mark)
* Method in MarkOrder to get next mark, however the last mark and next mark will need to be stored by whoever implements the second task.
See merge request !52
2017-08-05 15:18:26 +12:00
Zhi You Tan
a727014fcb
Implemented boats spawning in parallel at the start line with spacing.
...
Added two more colours to support up to eight boats.
#story[1117]
2017-08-05 00:31:36 +12:00
Kusal Ekanayake
ae28ccf228
Made sails luff in the right direction.
...
#story[1111]
2017-08-04 16:24:34 +12:00
Michael Rausch
281ce2d842
Loading course mark order from RaceXML
...
- Re-engineered code to work with the new marks
- Fixed bug where race order wasn't correct (added RacePosition class to fix)
- Rewrote tests to work with new RacePosition class
Tags: #story[1124] (Task 1)
2017-08-04 13:20:50 +12:00
Kusal Ekanayake
f8af9cc259
Works for clients and server.
...
Due to the information being sent and received, it only currently works on client side boats.
#story[1111]
2017-08-03 19:07:30 +12:00
Zhi You Tan
8af80e6c3a
WIP: Connected game client to main server thread to pass compound mark variable.
...
Boats are initialised in main server thread behind start line before game starts.
#story[1117]
2017-08-03 18:39:15 +12:00
William Muir
874cdec654
Added booleans: has entered rounding zone, has crossed first line, has crossed second line
...
All for purposes of checking mark rounding.
Currently not yet finished
tags: #story[1124] #pair[hyi25, wmu16]
2017-08-03 17:39:07 +12:00
Kusal Ekanayake
99d5545ed3
Made the sails work properly by toggling.
...
Need to remove the unneeded code I added.
#story[1111]
2017-08-03 16:33:51 +12:00
William Muir
423f1acdb6
Merge remote-tracking branch 'origin/develop' into develop
2017-08-03 16:29:22 +12:00
William Muir
454e9ac9f1
Added an attribute to each yacht: 'DistanceToNextMark'
...
This attribute is calculated at each update of the boat as prompted by the game state regularly
Removed the lat and lng attribute from the Yacht class and replaced its usage with the GeoPoint object instead
Removed redundant test files and merged GeoUtility and testGeoUtil test classes into one
tags: #story[1124] #pair[hyi25, wmu16]
2017-08-03 16:29:12 +12:00
Kusal Ekanayake
a8e70b3631
Merge branch 'develop' into Story64_SailsAnimations
...
# Conflicts:
# src/main/java/seng302/controllers/LobbyController.java
# src/main/java/seng302/fxObjects/BoatGroup.java
# src/main/java/seng302/model/Yacht.java
2017-08-03 15:19:13 +12:00
Kusal Ekanayake
eb83e9dcc5
Working idle sail animation.
...
Need to work on getting sails to toggle properly. Have the 2 animations almost working but unable to switch between the two.
#story[1111]
2017-08-03 14:50:56 +12:00
Zhi You Tan
1ab849fd0d
Added cucumber dependency.
2017-08-03 14:02:52 +12:00
William Muir
db078538ff
Minor cleaning in yacht class
...
tags: #story[1124]
2017-08-03 13:53:30 +12:00
Calum
1c0d869894
Corrected a value in the race.xml
2017-08-03 13:49:53 +12:00
Calum
f9e6df46c1
Fixed issues caused by merge.
...
#bug
2017-08-03 13:23:43 +12:00
Calum
5228c078bc
Merge branch 'develop' into 1124_Mark_Sequence_From_RaceXML
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/server/simulator/Simulator.java
# src/main/java/seng302/models/mark/Mark.java
# src/main/java/seng302/visualiser/map/CanvasMap.java
2017-08-03 12:27:11 +12:00
William Muir
f5f73ede6b
Merge branch 'story61_player_perspective' into 'develop'
...
Big boy merge request. Issue 34. Issue 35.
# This merge request is to fix **Issue 34** and **Issue 35**
*This is will require some further work but is being added to develop as is*
# Changelog
## Mark classes from server now used in client also.
The mark setup client side was poor because all marks were of type AbstractMark but they all had different methods so you had to identify what kind of mark they were anyway. The server side implementation
used the same calls for all Mark types and had the bonus of a GeoPoint class with utilities for distance and calculations.
## Yacht Class now contains observable values
The yacht attributes used by the model are now observable.
## StreamParser now static utils class.
Data no longer needs to be stored in the staticly available thread. Can now be processed in a more direct fashion by classes calling the parsing utils when needed.
## XMLParser now static utils class.
XMLParser now converts XML formatted doc objects and returns the containing data, this removes the need for the class to store multiples kinds of XML data and can instead just return it for use elsewhere.
## Data storage classes added to java/seng302/model/stream/parser
Rather than the StreamParser updating the Model directly it just processes the data into basic data types and shoves it all into objects for processing elsewhere. This avoids the static StreamParser class needing to know about Model objects.
## All static ultilities moved to their own package to make them easier to locate. Any child classes moved to their own files and added to packages in the model package.
## All visualiser code moved to the a new visualiser package
## Grouped all high level logic for the app and data management.
Previously all the high level logic (e.g. when to start a race, what fxml to show, how to process data from the stream) was in a number of classes. Mainly StreamParser, Controller, StartScreenController, RaceViewController, BoatGroup and LobbyController. All of this has been grouped into GameClient.
* This reduces the need to share data between these classes. Previously all the controllers needed references to one another to work so they were essentially the same class anyways.
* This makes it easier to find specific logic.
* Everything is now accessabile from GameClient, or from something GameClient knows about, making it easier to pass information if needed.
## Logic removed from LobbyController. Now only displays information
## Annotation box now a generic case for a rectange containg any number or type of annotation.
This means that if any new annotation needs to be added you don't have to hard code a specific case for it. Just initialize the annotation in the box at anytime.
## GameClient now observes the state of Yacht and Marker classes for position changes and updates them accordingly.
This avoids having to pass data to the GameView and having to poll for changes.
## CanvasController renamed GameView, now only concerned with displaying the race.
Moved all unnecessary logic to GameClient. Also fixed some issues where it polled RaceViewController for data instead of being updated by RaceViewController.
## MarkerObjects now a simple circle bound to the location of a given Mark. To display a gate lines are bound between the circles bound to Marks if a CompoundMark has more than one Mark.
Made all the logic here much more straight forward.
## Replaced most public static data classes with listeners.
Removed a bunch of polling. Made sharing data simplier and more readable.
# Known Issues & Limitaitons
* Pretty much everything that wasn't working at the end of sprint 5.
* Because listeners are triggering stuff on the JavaFX thread you have to use `Platform.runLater(() -> {//Do stuff});` whenever you want to access FX stuff from other threads. You can't just be lazy and put everything in it because then the JavaFX thread goes really slow. This is actually good practice anyways since you want to process data off of them FX thread (so not anything that's not triggered by a controller or an event) to keep JavaFX responsive.
* There is a 100% chance stuff has broken with this refactor that I'm not aware of. Some of it I am aware of.
# Testing
Good joke. I did manual testing though.
# Acceptance criteria
It works more or less.
See merge request !50
2017-08-03 12:11:20 +12:00
William Muir
1160f274ee
Reformatted code in appropriate style
...
Build fails server side only due to some dependency issue. Internet problem server side?? (M I C H A E L?)
tags: #issue[34]
2017-08-03 12:06:07 +12:00
William Muir
53f5d63f15
Fixed build. (Actually this time) ((NOW WERE READY TO MERGE)))
...
All doc string annotations were required to be fixed for all methods
tags: #issue[34]
2017-08-03 11:50:07 +12:00
William Muir
1150ec3e43
Merge branch 'develop' into story61_player_perspective
...
# Conflicts:
# src/main/java/seng302/App.java
2017-08-03 11:48:54 +12:00
William Muir
c655cb3fab
Fixed build. (Actually this time)
...
All doc string annotations were required to be fixed for all methods
tags: #issue[34]
2017-08-03 11:45:14 +12:00
William Muir
8e24c204fd
Fixed build.
...
Google map does not work
tags: #issue[34]
2017-08-03 11:26:44 +12:00
Michael Rausch
7885b3fae2
Loading course mark order from RaceXML
...
- Mark order is read from the generated RaceXML and stored
- Added .getNextMark() to get the next mark in the race
- Added .equals() and .hashCode() for Marks
Tags: #story[1124] (Task 1)
2017-08-02 22:03:10 +12:00
Michael Rausch
b01d39f19f
Merge remote-tracking branch 'origin/develop' into develop
2017-08-02 20:42:22 +12:00
Michael Rausch
bbf494e9a1
Merge branch 'master' into 'develop'
...
Merge Master into develop
See merge request !51
2017-08-02 20:42:07 +12:00
Michael Rausch
eae201cb4b
Merge remote-tracking branch 'origin/develop' into develop
2017-08-02 20:32:43 +12:00
Calum
87ef37a689
Fixed connecting to hosts. Fixed issue34 and 35 to the point where they can be developed off of.
...
#refactor #bug #issue[34, 35]
2017-08-02 00:26:57 +12:00
Alistair McIntyre
b2c7b65191
Merge branch 'Logging' into 'master'
...
Added dependencies for slf4j
See merge request !49
2017-08-01 15:20:41 +12:00
Calum
908c0749cf
Boats now move on screen as intended.
...
TODO - Make the client connect to the server.
2017-08-01 02:37:55 +12:00
Calum
47c5e6f155
Reverting some new graphics classes back to how they were on master.
2017-07-31 23:35:28 +12:00
Michael Rausch
9deba732b0
Added dependencies for slf4j
2017-07-31 18:34:55 +12:00
Calum
b82d0d0137
Boats and map are now updated using the observer pattern.
...
#implement
2017-07-31 05:23:41 +12:00
Calum
f1ad03e913
Refactored the setup for MarkObjects (now renamed Markers) and made the CompoundMark + Mark + GeoPoint classes the standard across all classes instead of GateMark + SingleMark + Mark.
...
#refactor
2017-07-31 02:19:19 +12:00
Calum
6cae338c1e
Began fixing bugs with caused by asynchronous listener calls.
...
#bug
2017-07-30 20:12:19 +12:00
Calum
7894e31926
Merge branch 'develop' into story61_player_perspective
...
# Conflicts:
# src/main/java/seng302/App.java
# src/main/java/seng302/client/ClientPacketParser.java
# src/main/java/seng302/client/ClientState.java
# src/main/java/seng302/client/ClientStateQueryingRunnable.java
# src/main/java/seng302/controllers/Controller.java
# src/main/java/seng302/controllers/LobbyController.java
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/controllers/StartScreenController.java
# src/main/java/seng302/fxObjects/BoatAnnotations.java
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/model/stream/StreamReceiver.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/fxObjects/BoatObject.java
# src/test/java/seng302/model/stream/StreamReceiverTest.java
2017-07-30 18:07:28 +12:00
Michael Rausch
25d8c8f9c4
Minor bug fixes.
...
Server will now only save incoming connections if in lobbying mode as it should
Commented out boat status printing
tags: #story[1047]
2017-07-27 14:15:55 +12:00
Zhi You Tan
1d9dd76356
For client's lobby view, it now can shows the connected host IP
...
#story[1055]
2017-07-27 13:12:53 +12:00
Zhi You Tan
c2c34705d5
removed an unnecessary print statement and caught an exception
2017-07-27 13:01:04 +12:00
Zhi You Tan
96ed5e445e
Replaced print stack trace with print statements
2017-07-27 12:47:18 +12:00
Kusal Ekanayake
870dc07fd2
Slight improvements to hosting.
...
Allow a host/client to disconnect and reconnect/make lobby, leave lobby and play the game.
#pair[kre39,hyi25] #story[1047]
2017-07-27 12:45:22 +12:00
Michael Rausch
ecbb3f6658
Merge remote-tracking branch 'origin/develop' into develop
2017-07-27 11:06:00 +12:00
Haoming Yin
34704bd93d
Merge remote-tracking branch 'origin/develop' into develop
2017-07-26 23:32:32 +12:00
Haoming Yin
201c88a253
Fixed a bug that program crashes when it receive regatta xml during the race, as it doesn't know how to handle the xml.
...
#story[984]
2017-07-26 23:32:16 +12:00
Peter Galloway
6c4da58d9d
Merge remote-tracking branch 'origin/develop' into develop
2017-07-26 22:42:48 +12:00
Peter Galloway
b56fa5cba3
refactored to make boat trails work again #fix #refactor
2017-07-26 22:42:37 +12:00
Peter Galloway
9cedbeb6f6
Fixed latency issues caused by clientside movement packets queueing up but currently the trails aren't working anymore #fix #refactor
2017-07-26 22:02:46 +12:00
Michael Rausch
4c6d107102
Merge remote-tracking branch 'origin/develop' into develop
2017-07-26 20:28:21 +12:00
Michael Rausch
7917a2584b
Fixed alignment for wind direction
2017-07-26 20:28:13 +12:00
Alistair McIntyre
f99f8a0d7c
Merge remote-tracking branch 'origin/develop' into develop
2017-07-26 20:13:09 +12:00
Alistair McIntyre
7db716f51c
Boat should move towards optimal angle upwind and downwind when pressing spacebar (VMG)
...
#story[988]
2017-07-26 20:12:57 +12:00
Haoming Yin
592e5a088f
Merge remote-tracking branch 'origin/develop' into develop
2017-07-26 19:58:45 +12:00
Haoming Yin
2d6850950c
Merge branch 'develop' into Documenting_client_and_server
...
# Conflicts:
# src/main/java/seng302/client/ClientToServerThread.java
2017-07-26 19:57:43 +12:00
Haoming Yin
ef6821a0cd
Updated and added more documentations
...
#story[1047]
2017-07-26 19:55:35 +12:00
Michael Rausch
6e9535d78f
Fixed race timer & Added boats to team position list
...
- Race status messages are sent at regular intervals instead of once at race start
- Boat positions are initialised on the Team Position list
- Timer counts up from when host clicks ready
Tags: #story[377]
2017-07-26 19:35:59 +12:00
Alistair McIntyre
72a45f5984
Fixed a bug where if boatMaxSpeed was 0 and sails were up, boat would not decelerate.
...
#story[986]
2017-07-26 17:11:34 +12:00
Alistair McIntyre
de600fa062
Merge remote-tracking branch 'origin/develop' into develop
2017-07-26 17:10:29 +12:00
Haoming Yin
87e3b4f246
Merge branch 'story61_player_highlighting' into 'develop'
...
Story61 player highlighting
Added some highlighting for the players boat and a random name generator to help distinguish clients. The highlighting implementation is pretty hackish since they will be replaced by the visualiser overhaul anyways. To avoid refactoring a lot of code I just made some unused javaFX elements invisible rather than removing them, I can do it properly if requested.
See merge request !48
2017-07-26 16:31:53 +12:00
Alistair McIntyre
7b47d72ef0
Merge branch 'develop' of /home/cosc/student/ajm412/Documents/SENG302/team-13 with conflicts.
2017-07-26 16:22:01 +12:00
Calum
7392bdb80d
Added documentation
...
#document
2017-07-26 16:03:11 +12:00
Zhi You Tan
af9f1417f1
Documented client packet parser, client state, client state querying runnable, client to server thread and replaced e.printStackTrace() with client log messages.
2017-07-26 16:01:41 +12:00
Calum
8fc00fd750
Enabled boat path for only the player.
...
#story[987]
2017-07-26 16:01:01 +12:00
Calum
4e5b67abfa
Merge branch 'develop' into story61_player_highlighting
2017-07-26 15:52:29 +12:00
Calum
84e8ac89fc
Added random name generator until players can chose how to identify themselves.
2017-07-26 15:52:02 +12:00
Calum
12d081a1af
Added highlighting for the player and moved all their assets to the foreground
...
#story[987]
2017-07-26 15:49:00 +12:00
William Muir
5e6b402bf5
Minor structural changes. GameState now has a thread which updates itself so its update
...
rate can be independent of sending packets to the client in the MainServerThread
#story[986] #pair[wmu16, ptg19]
2017-07-26 14:48:32 +12:00
Alistair McIntyre
2bfa6cb038
Adjusted the velocity calculations to allow for Acceleration/Deceleration of the boats, rather than just coming to a complete halt when the sails are pulled in.
...
#story[986]
2017-07-26 14:01:51 +12:00
Calum
8ac44d13df
Began fixing conflicts with LobbyController
...
#bug
2017-07-26 12:05:03 +12:00
William Muir
d99055901f
Removed Music
2017-07-26 11:38:29 +12:00
Calum
9c9f6e4e80
Merge branch 'develop' into story61_player_perspective
...
# Conflicts:
# src/main/java/seng302/fxObjects/BoatAnnotations.java
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/model/Yacht.java
# src/main/java/seng302/visualiser/controllers/LobbyController.java
2017-07-26 02:56:46 +12:00
Calum
08e369f1ae
Merged with develop. Fixed many bugs in Visualiser.
...
#bugs
2017-07-26 02:49:31 +12:00
Michael Rausch
b0e99ab444
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# src/main/java/seng302/server/ServerThread.java
2017-07-25 23:10:41 +12:00
Haoming Yin
c77a48f589
Merge remote-tracking branch 'origin/develop' into develop
2017-07-25 23:06:06 +12:00
Haoming Yin
0135426dfe
Changed lobby player profile to a lower risk pictures
...
#story[1055]
2017-07-25 23:05:52 +12:00
William Muir
37c745c139
Polar velocities should now work as intended.
...
Snapping to VMG still needs to be implemented.
Still an issue of not being able to pass the total upwind or downwind point
tags: #story[986]
2017-07-25 22:27:26 +12:00
William Muir
7880039801
Merge remote-tracking branch 'origin/develop' into develop
2017-07-25 22:19:19 +12:00
William Muir
a56dac1e87
Polar velocities should now work as intended.
...
Snapping to VMG still needs to be implemented.
Still an issue of not being able to pass the total upwind or downwind point
tags: #story[986]
2017-07-25 22:19:03 +12:00
Haoming Yin
4ae422b47b
When a player connects to the server, lobby will now show their user id and profile instead of showing all the profile gif at the beginning,
...
#story[1055] #pair[hyi25, zyt10]
2017-07-25 21:50:23 +12:00
Calum
acd54dec7a
Merge branch 'develop' into story61_player_perspective
...
# Conflicts:
# src/main/java/seng302/App.java
# src/main/java/seng302/client/ClientPacketParser.java
# src/main/java/seng302/controllers/Controller.java
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/fxObjects/BoatAnnotations.java
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/model/Boat.java
# src/main/java/seng302/models/stream/XMLParser.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/GameView.java
# src/main/java/seng302/visualiser/controllers/FinishScreenViewController.java
# src/main/java/seng302/visualiser/controllers/StartScreenController.java
# src/main/java/seng302/visualiser/fxObjects/BoatObject.java
# src/main/resources/views/LobbyView.fxml
# src/main/resources/views/MainView.fxml
2017-07-25 21:05:15 +12:00
Calum
6242ab0b2e
Implemented observer and strategy pattern in BoatAnnotations, now renamed AnnotationsBox.
...
Also implemented various other small fixes and further refactored code.
#refactor
2017-07-25 20:45:27 +12:00
Michael Rausch
c8a96dcce9
Fixed XML Loading error, used VMG to calculate boat velocity
...
- XML read from stream instead of file
- Started implementing VMG to calculate boat velocity dynamically
Tags: #pair[wmu16, mra106] #story[986]
2017-07-25 20:14:50 +12:00
Kusal Ekanayake
4f2dca7ecf
Added proper the starting locations for marks and boats.
2017-07-25 18:48:33 +12:00
Zhi You Tan
e569574c01
Merge remote-tracking branch 'origin/develop' into develop
2017-07-25 17:17:45 +12:00
Zhi You Tan
f544734b4d
Fixed sending wrong race xml when a player disconnected because xml is getting data from gamestate yacht but the yachts are not updated is player disconnect.
...
Heartbeat packet was sent out at wrong rate which cause the player disconnect detection to be slow. Heartbeat packet is send out every 200ms now.
#story[1055] #pair[hyi25, zyt10]
2017-07-25 17:17:36 +12:00
Kusal Ekanayake
80b439470b
Merge remote-tracking branch 'origin/develop' into develop
2017-07-25 15:22:56 +12:00
Kusal Ekanayake
539197cef5
Added a visual indicator of wind speed during race (text box)
...
#pair[kre39,mra106] #story[1040]
2017-07-25 15:22:46 +12:00
Zhi You Tan
1a867be387
Added keystroke frequency limit
...
Updated client and server log format
#story[988] #pair[hyi25, zyt10]
2017-07-25 15:13:48 +12:00
Kusal Ekanayake
3785cd705f
Fixed wind speed and direction being sent correctly.
...
#pair[kre39,mra106] #story[1036]
2017-07-25 15:08:10 +12:00
Kusal Ekanayake
5d7a438080
Changed default ip back to non local host.
2017-07-25 14:28:21 +12:00
Kusal Ekanayake
2f12f3e34f
Fixed bug to let multiple people play at the same time.
2017-07-25 14:27:52 +12:00
Zhi You Tan
52bfa3ad34
Merge remote-tracking branch 'origin/Story1055_Send_Race_Status_When_Host_Ready' into develop
...
# Conflicts:
# src/main/java/seng302/controllers/LobbyController.java
2017-07-25 00:03:58 +12:00
Zhi You Tan
d1d659b698
Lobby view will switch to race view when received race status packet with race start type.
...
Ready button can only be pressed by host. Once pressed, it will send out race status packet with race start to all clients.
#story[1055]
2017-07-25 00:01:59 +12:00
William Muir
cdb9337aed
Deleted GameServerThread after being re merged in
...
#chore
2017-07-24 23:20:47 +12:00
Zhi You Tan
8b0af5bb62
Updated observer so it sends out updated boats.xml when client disconnects
...
#story[1047] #pair[wmu16, zyt10]
2017-07-24 21:35:31 +12:00
Zhi You Tan
83232a935e
Merge remote-tracking branch 'origin/Story984_Send_XML_After_Clients_Connect' into develop
...
# Conflicts:
# src/main/java/seng302/gameServer/ServerToClientThread.java
2017-07-24 21:30:12 +12:00
William Muir
a30a1aa7c7
Tweaking to server loop making it send packets at 5Hz
...
Commented out some smoothing code in BoatGroup that was dependend on FPS screwing with movement
2017-07-24 21:14:17 +12:00
William Muir
07cebb6c5b
Updated velocity in yacht constructor so the boat can be seen properly working for test purposes
2017-07-24 16:47:17 +12:00
Kusal Ekanayake
45bf65a3d3
Made clients receive new xml after new clients connect.
...
#pair[kre39,zyt10] #story[984]
2017-07-24 16:15:19 +12:00
Kusal Ekanayake
60f5a99b0c
Merge branch 'Merging_GameLoop_with_Broadcast' into develop
...
# Conflicts:
# src/main/java/seng302/controllers/StartScreenController.java
2017-07-24 15:32:52 +12:00
Kusal Ekanayake
526c12127f
Merging game lobby with game state broadcast. Merge conflicts resolved.
...
Port numbers updated to 4942.
2017-07-24 15:26:51 +12:00
Kusal Ekanayake
1daac842f2
Merging game lobby with game state broadcast
2017-07-24 15:01:07 +12:00
Kusal Ekanayake
3e4a6f0f2e
Merge remote-tracking branch 'origin/Story1055_Lobby_View_Update' into Merging_GameState_With_Lobby
...
# Conflicts:
# src/main/java/seng302/client/ClientPacketParser.java
# src/main/java/seng302/client/ClientToServerThread.java
# src/main/java/seng302/controllers/LobbyController.java
# src/main/java/seng302/controllers/StartScreenController.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
2017-07-24 14:58:14 +12:00
Kusal Ekanayake
c1e937049e
Merge remote-tracking branch 'origin/Story62_Swtich_To_RaceView_When_Race_Start' into Merging_GameLoop_with_Broadcast
...
# Conflicts:
# src/main/java/seng302/controllers/LobbyController.java
# src/main/java/seng302/controllers/StartScreenController.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
2017-07-24 14:37:56 +12:00
Zhi You Tan
8f8d5c7384
Removed a test sending xml
...
#story[1055]
2017-07-24 14:24:54 +12:00
Calum
aad93d8913
Parsing classes now static utilities. Data now moved to model via controller class. Race logic shifted out of grpahics classes. Several improvements to code readability.
...
#story[986] #refactor
2017-07-24 12:14:08 +12:00
Zhi You Tan
027c7a1480
Updated start screen controller to connect to itself after setting up server.
...
#story[1047]
2017-07-24 12:09:23 +12:00
Zhi You Tan
df2efa3329
Lobby controller list view is able to react to changes in client state boats and update the list view appropriately.
...
#story[1055]
2017-07-24 11:15:10 +12:00
Zhi You Tan
9d754c8819
Implemented list views initialisation which will set the first pane to be your source id (after three way handshake) and the remaining pane to be the source id of other players based on boats.xml received.
...
Updated client parser and client state to save a list of player's boat
WIP: refresh list view to show the latest update in players
#story[1055]
2017-07-23 20:42:21 +12:00
Zhi You Tan
e11ceed28c
Merge remote-tracking branch 'origin/Story62_Creating_Game_Loop' into Story1055_Lobby_View_Update
...
# Conflicts:
# src/main/java/seng302/controllers/StartScreenController.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
2017-07-23 19:59:30 +12:00
Michael Rausch
8b8b6e4afa
Fixed map glitch when race starts, and race XML bug
...
- Race XML wasn't being sent to clients, this was causing a null ptr exception
- Boat location was being set to an invalid lat/lng
Tags: #story[1047]
2017-07-23 18:20:13 +12:00
Kusal Ekanayake
ed2a22b573
Tried to merge game loop with the broadcast. Minor error in canvas. need to fix.
...
#story[1047]
2017-07-23 17:37:45 +12:00
Kusal Ekanayake
41851ee925
Merge branch 'Story62_Creating_Game_Loop' into Merging_GameLoop_with_Broadcast
...
# Conflicts:
# src/main/java/seng302/controllers/StartScreenController.java
# src/main/java/seng302/gameServer/ServerListenThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/models/Yacht.java
2017-07-23 17:34:24 +12:00
Kusal Ekanayake
ffc61942a9
Fixed broken pipe error.
...
Was caused by boat ids being over 1000 and when turned into xml having a comma placed between the hundreds and the thousands? So to fix, I just mad the max id number 999 so there should not be any issues regarding that if another broken pipe error occurs. Also switched to use the correct yacht constructor.
#story[1047]
2017-07-23 17:10:18 +12:00
Kusal Ekanayake
2e4382bff6
Trying to fix the boat information that is being sent over.
...
Current issue is that a broken pipe error keeps occurring potentially due to how the messages are being sent so quickly that the previous message may have not finished sending. Also only caused the xm packets to be sent on trigger when a new client connects.
#story[1047]
2017-07-23 16:22:59 +12:00
Zhi You Tan
f542dbb61e
Changed the competitors list view to eight individual list view.
...
Added eight individual image view to support future player icon implementation.
#story[1055]
2017-07-23 03:00:29 +12:00
William Muir
2869d139a3
Three way handshake implemented client and server side and functioning
...
Server generates a new Id for connections (Size of connections + 1)
Client now stores an id allocated to it by the server
The id is currently being saved in the clientToServer thread client side
tags: #story[987] #implement
2017-07-22 17:44:37 +12:00
William Muir
3ec930491f
Minor refactor, threads now start themselves
...
tags: #story[989] #refactor
2017-07-22 16:45:24 +12:00
William Muir
a0005064ac
Fixed the Yacht clas so it now works.
...
Lists and Maps are instantiated as they should be in GameState which were creating NullPointers
Introduced ServerLog to server to client threads for bug reporting
Introduced some print statements to test the game state updating upon receiving key presses
tags: #story[989] #refactor #fix
2017-07-22 16:32:05 +12:00
Michael Rausch
33fae9d69a
Added race boats to XML Generator
...
Tags: #story[1047]
2017-07-21 16:56:46 +12:00
Peter Galloway
913e5fee7b
Hooked up key press actions to the GameState, applying the relevant maths to update headings etc.
...
tags: #story[989] #pair[ptg19, wmu16]
2017-07-21 16:50:09 +12:00
Zhi You Tan
3992073303
Set race started state in client state when packet is passed in client packet parser.
...
#story[1055]
2017-07-21 16:36:56 +12:00
Zhi You Tan
797a99f632
Merge remote-tracking branch 'origin/develop' into Story62_Swtich_To_RaceView_When_Race_Start
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
2017-07-21 16:35:04 +12:00
Zhi You Tan
e891ed8a64
LobbyView now can change to RaceView upon race start packet received.
...
Added port number text field in start screen controller.
Created a client state.
#story[1055] #pair[hyi25, zyt10]
2017-07-21 16:14:45 +12:00
Michael Rausch
e8c2cf809b
Fixed Null Ptr Exception in GameState
2017-07-21 15:42:20 +12:00
Michael Rausch
ec761893c7
Merge branch 'Story62_Reading_Keystrokes' into 'develop'
...
Story62 reading keystrokes
Big merge
See merge request !44
2017-07-21 15:39:39 +12:00
Kusal Ekanayake
5df7efda03
Started implementing the gameState broadcasts.
...
Initial xml files are almost broad casted, just need to create them (or import the for the regatta). Started the setup for sending boat location packets, should work once we get at least the boat xml working when being sent.
#story[1047]
2017-07-21 13:16:43 +12:00
Kusal Ekanayake
2fff73c075
Merge remote-tracking branch 'origin/984_Xml_Generation' into Broadcasting_GameState
...
# Conflicts:
# src/main/java/seng302/controllers/FinishScreenViewController.java
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/gameServer/GameServerThread.java
# src/main/java/seng302/gameServer/GameState.java
# src/main/java/seng302/models/Yacht.java
2017-07-21 12:31:35 +12:00
Zhi You Tan
d37cbd263e
Merge remote-tracking branch 'origin/Story62_Creating_Game_Loop' into Story62_Reading_Keystrokes
...
# Conflicts:
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/gameServer/MainServerThread.java
# src/main/java/seng302/gameServer/ServerToClientThread.java
2017-07-21 11:13:40 +12:00
Calum
3ec1242a9a
Merge branch 'Story62_Reading_Keystrokes' into story61_player_perspective
...
# Conflicts:
# src/main/java/seng302/gameServer/ServerToClientThread.java
# src/main/java/seng302/visualiser/ClientToServerThread.java
# src/main/java/seng302/visualiser/controllers/RaceViewController.java
2017-07-21 11:13:04 +12:00
Calum
881f7f8e30
Changed package heirachy. Merged Controller and StartScreenController.
...
#refactor
2017-07-21 09:22:55 +12:00
Peter Galloway
12c2f31af9
Merge remote-tracking branch 'origin/Story62_Creating_Game_Loop' into Story62_Creating_Game_Loop
...
# Conflicts:
# src/main/java/seng302/gameServer/GameState.java
2017-07-20 19:38:07 +12:00
Peter Galloway
49c0c029c3
adjusted the way the server is receiving key presses to enable them be passed through to the game state #pair[ptg19, wmu16] #story[989]
2017-07-20 19:35:59 +12:00
Alistair McIntyre
da7a34fc55
Started adding functionality to calculate yacht velocity from the wind speed and direction using polar tables. Also began writing tests to cover this functionality, as it can't currently be tested within the game itself.
...
#story[986]
2017-07-20 14:30:13 +12:00
Michael Rausch
322ff740e2
Added race start time to race XML
...
- Added race start time to race XML
- Added documentation
- Removed test code in MainServerThread
Tags: #story[984]
2017-07-20 14:28:59 +12:00
Kusal Ekanayake
b1575e57df
Host also can be it's own client.
...
The host can connect to itself to become a client, packets are also sending from the host to client, update method should be ready to fully implemented. Added chatter packets to packet types to be used mostly for testing but can be further implemented for proper use in the future.
#story[1055]
2017-07-20 13:53:53 +12:00
Michael Rausch
82b219cdba
Boat and race XML now generated dynamically
...
- Removed course from XML Generator as it was not needed
- Boat and race XML added
- Method names in Yacht class updated to follow JavaBean standard so they can be read by the template engine
Tags: #story[984]
2017-07-20 13:30:55 +12:00
Peter Galloway
e317de7562
Added mock yachts to the game state for each client #story[1047]
2017-07-20 13:11:37 +12:00
Calum
9ecaa7c3b3
Merge branch 'Story62_Reading_Keystrokes' into story61_player_perspective
2017-07-20 13:05:26 +12:00
Calum
037b0db01b
Refactoring client for more atomic classes, will mimic the socket, game state, logic thread layout used by the server.
...
#refactor
2017-07-20 13:04:29 +12:00
Zhi You Tan
1e80d76acd
Retrieve local host ip address and show it on lobby view.
...
#story[1055] #pair[hyi25, zyt10]
2017-07-20 12:52:53 +12:00
Calum
360c55fdb9
Merge branch 'Story62_Reading_Keystrokes' into story61_player_perspective
...
# Conflicts:
# src/main/java/seng302/controllers/GameViewController.java
# src/main/java/seng302/fxObjects/BoatGroup.java
2017-07-20 12:20:12 +12:00
Peter Galloway
176d65e0b2
Merge branch 'Story62_Reading_Keystrokes' into Story62_Creating_Game_Loop
2017-07-20 12:01:53 +12:00
William Muir
0c08f5a03c
Refactoring to remove all superflous classes related to the server
...
GameServerThread --> MainServerThread
All server classes consolidated into the gameServer package and all others removed
tags: #story[1055] #refactor #fix
2017-07-20 11:46:06 +12:00
William Muir
e257602b78
Merge remote-tracking branch 'origin/Story62_Reading_Keystrokes' into Story62_Reading_Keystrokes
...
# Conflicts:
# src/main/java/seng302/controllers/LobbyController.java
# src/main/java/seng302/gameServer/MainServerThread.java
2017-07-20 11:35:27 +12:00
William Muir
8f00f3a80c
Refactoring for server package, Changed GameServerThread to MainServerThread.
...
All Server classes now in single gameServer package
tags: #story[1055]
2017-07-20 11:22:30 +12:00
Peter Galloway
63d24c001f
Added position update in yacht #story[1047]
2017-07-19 19:41:07 +12:00
Peter
67668fe1fc
Merge branch 'Story62_Reading_Keystrokes' into Story62_Creating_Game_Loop
2017-07-19 18:13:58 +12:00
Kusal Ekanayake
dbbb41e12f
Multiple clients are now shown in lobby of host.
...
When multiple clients connect to the host, the lobby table now fills up with the names of the threads (will need to be changed later). Re-enabled multiple people connecting and the lobby table. Formatting changes in the lobby screen also made.
#story[1047]
2017-07-19 16:05:21 +12:00
Michael Rausch
45053ba507
Added XML Generation
...
- Implemented a wrapper for Apache Freemake
- Implemented the regatta XML generator
Tags: #story[984]
2017-07-19 14:47:16 +12:00
Calum
d9f5f7a137
Refactoring view for game development
...
#story[987]
2017-07-18 14:00:24 +12:00
William Muir
b301ce5d27
fixed build (i think?)
...
tags: #story[1055] pair[wmu16, zyt10]
2017-07-18 12:26:47 +12:00
William Muir
f02bd3b3f8
Merge remote-tracking branch 'origin/Story62_Reading_Keystrokes' into Story62_Reading_Keystrokes
2017-07-18 12:23:09 +12:00
William Muir
e83eaa38e1
Upon hosting, and then creating a new instance and connecting to that IP, button transmissions work and print out on server!! :D
...
Took the send method out of the Message class as it didnt make sense to have it there. This meant taking it out of all subclasses too
tags: #story[1055] pair[wmu16, zyt10]
2017-07-18 12:22:58 +12:00
Kusal Ekanayake
102b5f3ca1
Added a program icon that I snipped from the logo using photoshop.
2017-07-18 10:46:41 +12:00
Haoming Yin
63958a6717
WIP: Implemented a temporary workaround to send an instance test to client server upon connection.
...
Still needs reengineering to change socket channels for sending to ouput stream in the message class.
Only client to server "working".
#story[1047] #pair[hyi25, wmu16] #pair[cir27, zyt10]
2017-07-17 17:00:04 +12:00
Haoming Yin
4b8ac32ca9
Merge branch '1047_Hosting_Game' into Story62_Reading_Keystrokes
2017-07-17 10:55:17 +12:00
Haoming Yin
00b29a1890
Merge remote-tracking branch 'origin/develop' into Story62_Reading_Keystrokes
2017-07-17 10:55:08 +12:00
Haoming Yin
c7e5f93bc4
Merged GeoUtility and GeometryUtils classes
...
#story[1047]
2017-07-16 21:58:40 +12:00
Haoming Yin
e4d87c91a2
Merge branch 'develop' into 1047_Hosting_Game
2017-07-16 21:54:08 +12:00
Zhi You Tan
f84091e54e
Removed (fxml) table view and its table column from lobby controller because the table view is removed from LobbyView.fxml
...
#story[988]
2017-07-14 18:27:54 +12:00
Zhi You Tan
e03e8825b2
Merge remote-tracking branch 'origin/1047_Hosting_Game' into Story62_Reading_Keystrokes
2017-07-14 18:23:28 +12:00
Zhi You Tan
355f8543f5
Implemented a more reliable way for keystroke input and added boat action packet type so stream parser is able to read and decode the message appropriately.
...
#story[988] #pair[hyi25, zyt10]
2017-07-14 18:23:07 +12:00
William Muir
77e7db79cc
WIP: Worked on new server thread class that would create and store multiple THREADS of connections. Researched Authorative server structures.
...
Fixed the current structure of the server to work with the old StreamReciever style and hook up to the Stream Parser
tags: #story[1047] pair[wmu16, mra106]
2017-07-14 17:09:33 +12:00
Zhi You Tan
2809d0d832
Merge branch '1047_Hosting_Game' into Story62_Reading_Keystrokes
...
# Conflicts:
# src/main/resources/views/RaceView.fxml
2017-07-14 16:28:42 +12:00
William Muir
5b908ec355
Merge remote-tracking branch 'origin/1047_Hosting_Game' into 1047_Hosting_Game
...
# Conflicts:
# src/main/java/seng302/gameServer/GameServerThread.java
2017-07-13 22:55:49 +12:00
William Muir
c480fca72a
WIP: Worked on new server thread class that would create and store multiple THREADS of connections. Researched Authorative server structures
...
tags: #story[1047]
2017-07-13 22:55:03 +12:00
Michael Rausch
c19f66a6a4
Added garbage collection for disconnected players
...
- Heartbeat messages are sent out from their own thread to each player
- If a heartbeat message can't be sent to a player, they are removed from the list of players
- Added equals method for players
Tags: #story[1047]
2017-07-13 22:07:03 +12:00
Michael Rausch
1e6fd1af09
Fixed bug where players were being added to the GameState twice
...
#story[1047]
2017-07-13 19:27:47 +12:00
Michael Rausch
55db2c9961
Fixed buffer overflow in message header
...
- Fixed buffer overflow by adding a reset method that clears the buffer and sets the position to zero before re-writing the header
Tags: #story[1047]
2017-07-13 19:15:45 +12:00
Haoming Yin
6ec8b0c3c5
Terminated the game server socket when click exit lobby button
...
- the whole server thread should be terminated instead. To be fixed in the future.
#story[1047] #issue[28]
2017-07-13 17:51:25 +12:00
Kusal Ekanayake
78557a4536
Key presses are transmitted to a host (but there is no host currently connected)
...
#pair[kre39,zyt10] #story[988]
2017-07-13 15:39:48 +12:00
William Muir
8090cd7985
WIP: Adapted the old server thread class to the GameServerThread class to allow multiple clients to connect
...
tags: #story[1047] #pair[wmu16]
2017-07-13 14:40:11 +12:00
Kusal Ekanayake
5ce34bed92
Key presses now assigned to enum and empty packet class is constructed.
...
#pair[kre39,zyt10] #story[988]
2017-07-13 14:35:41 +12:00
William Muir
035841f221
WIP: Adapted the old server thread class to the GameServerThread class to allow multiple clients to connect
...
tags: #story[1047] #pair[wmu16, mra106]
2017-07-11 17:03:32 +12:00
Kusal Ekanayake
ef61a687d6
Researched and implemented a way for the game to listen for key presses. When one of the valid key controls are pressed, feedback is given in the console. Has yet to be connected to a method which will create and send a message to the server.
...
#pair[kre39,zyt10] #story[988]
2017-07-11 16:32:15 +12:00
Haoming Yin
fcb1e5e593
Removed unnecessary Position and GeoPoint classes to clear the code base.
...
- put utility classes in a package
#story[1047]
2017-07-10 23:51:01 +12:00
William Muir
752863a0d3
WIP: Created some basic controllers for the UI and started implementing backend for server stuff
...
Created GameState Class. Static, contains all info about current state of game: list of players and their respective details (coords etc) also Host info
Clients will observe this GameState class
Upon pressing host, new GameState is created and new GameConnectionListener created which listens for connections
Player class created which will be used to take each connection and store it as a player with other info about them regarding the game in the GameState class
tags: #story[1047] #pair[wmu16, zyt10]
2017-07-10 16:03:13 +12:00
William Muir
1a3e330eb4
Created some basic UI for new start screen (host and connect) and a lobby
...
tags: #story[1047] #pair[wmu16, zyt10]
2017-07-10 13:43:25 +12:00
William Muir
5f9da6b40a
Fixed the bug where the polar file could not be read after being packaged
...
tags: #story[955] #pair[wmu16, zyt10]
2017-07-10 12:36:32 +12:00
Michael Rausch
aee62c29fe
Merge remote-tracking branch 'origin/develop' into develop
2017-05-26 09:07:22 +12:00
Michael Rausch
fe76ef9cdc
Merge remote-tracking branch 'origin/develop'
2017-05-25 16:58:01 +12:00
Michael Rausch
acbaa838ec
Change default port to 4940
...
#story[956] #pair[wmu16, mra106]
2017-05-25 16:56:41 +12:00
Haoming Yin
f4134d83b5
Merge branch 'issue#8_create_finish_screen' into 'develop'
...
Issue#8 create finish screen
Created a finish screen which user can see position of the final result and able to go back to start screen to rewatch new race
See merge request !41
2017-05-25 16:52:59 +12:00
Zhi You Tan
24cc10e1cd
Merge remote-tracking branch 'origin/develop' into issue#8_create_finish_screen
...
# Conflicts:
# src/main/java/seng302/controllers/CanvasController.java
2017-05-25 16:51:32 +12:00
Zhi You Tan
20b79b40f2
Fix the button position #story[923]
2017-05-25 16:45:35 +12:00
Zhi You Tan
72e2776b7e
Fix the finish screen size #story[923]
2017-05-25 16:41:59 +12:00
Kusal Ekanayake
49e4c92da6
Merge branch 'develop'
2017-05-25 16:40:24 +12:00
Kusal Ekanayake
ba761e4951
Merge branch 'remove_observers' into 'develop'
...
Remove observers
Refactor for annotations and a few improvements here and there. Fix for several tracked issues and numerous other bug fixes.
See merge request !40
2017-05-25 16:36:43 +12:00
Calum
c1aa1d8eae
merged with dev
2017-05-25 16:32:25 +12:00
Calum
4231c3ccd8
Merge remote-tracking branch 'origin/develop' into remove_observers
2017-05-25 16:30:15 +12:00
Calum
65223ceaaf
shifted annotation layers. Merged with dev.
2017-05-25 16:29:27 +12:00
Kusal Ekanayake
ca22615c08
Add scroll bar to the side panel to cater for smaller screen.
2017-05-25 16:18:47 +12:00
Zhi You Tan
559a9f38c0
Merge remote-tracking branch 'origin/develop' into issue#8_create_finish_screen
...
# Conflicts:
# src/main/java/seng302/controllers/CanvasController.java
# src/main/java/seng302/models/stream/StreamParser.java
2017-05-25 16:12:44 +12:00
Michael Rausch
3bd8added4
Merge remote-tracking branch 'origin/develop' into develop
2017-05-25 14:56:11 +12:00
Michael Rausch
ba527a1979
Merge remote-tracking branch 'origin/develop' into develop
2017-05-25 14:54:28 +12:00
Calum
b73e4c89db
Merge remote-tracking branch 'origin/develop' into remove_observers
...
# Conflicts:
# src/main/java/seng302/controllers/CanvasController.java
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/fxObjects/BoatGroup.java
# src/main/java/seng302/fxObjects/MarkGroup.java
# src/main/java/seng302/models/Yacht.java
2017-05-25 14:52:54 +12:00
Michael Rausch
945acb6071
Merge remote-tracking branch 'origin/develop' into develop
2017-05-25 13:57:07 +12:00
Zhi You Tan
f163dfdd11
Removed a print statement
2017-05-25 13:14:36 +12:00
Zhi You Tan
a1eda8d91d
Fix boatPos in StreamParser.java being empty and affecting all the assessors
2017-05-25 12:58:11 +12:00
Zhi You Tan
5ed02a1fe1
Merge remote-tracking branch 'origin/develop' into issue#8_create_finish_screen
...
# Conflicts:
# src/main/java/seng302/controllers/CanvasController.java
2017-05-25 12:32:10 +12:00
Zhi You Tan
66d4a4b958
Fix finish screen showing wrong ("-" as) position
2017-05-25 12:28:13 +12:00
Calum
0cd2867ac0
Made annotations more readable when overlapping.
2017-05-25 10:30:01 +12:00
Calum
4d29354797
Merge branch 'develop' into remove_observers
...
# Conflicts:
# src/main/java/seng302/controllers/CanvasController.java
# src/main/java/seng302/fxObjects/BoatGroup.java
# src/main/java/seng302/models/stream/StreamParser.java
2017-05-25 10:25:54 +12:00
Calum
3085125f3e
Merged with develop
2017-05-25 01:21:40 +12:00
Calum
5e26ad7c36
Merge remote-tracking branch 'origin/develop' into remove_observers
...
# Conflicts:
# src/main/java/seng302/App.java
# src/main/java/seng302/controllers/CanvasController.java
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/models/Yacht.java
2017-05-25 01:12:10 +12:00
Calum
765ea06c3b
Several tweaks and improvements to a annotations and other visual aspects of them program. Fixed bug causing minimization crashes.
...
#implement #refactor #issue[23]
2017-05-25 01:02:33 +12:00
Calum
14a7305a2d
Made FPS marker not draw on canvas.
...
Have to revert the use of the observer pattern since there is no time to change how and when data is passed.
2017-05-24 17:17:06 +12:00
Zhi You Tan
e7060d4b6f
Finish screen will show when race finishes, added functionality to return to start screen when in finish screen, updated finishScreenView.fxml to have controller and also four corner anchors to fit to parent
2017-05-24 16:17:56 +12:00
Zhi You Tan
641039720e
Merge remote-tracking branch 'origin/develop' into issue#8_create_finish_screen
2017-05-24 16:12:37 +12:00
Michael Rausch
6f132f1e38
Merge remote-tracking branch 'origin/develop' into develop
2017-05-24 15:22:30 +12:00
Michael Rausch
a1e8d29b9c
Merge remote-tracking branch 'origin/develop' into develop
2017-05-24 14:36:04 +12:00
Zhi You Tan
c449da2916
[WIP] created finishScreenView.fxml, finishScreenViewController.java
2017-05-24 14:24:14 +12:00
Calum
d22d758757
Fix issues caused by not updating the time since last mark value frequently. BoatAnnotations now has an update() function that must be called somewhat regularly.
2017-05-24 03:23:02 +12:00
Calum
acbde5aad8
Moved boat annotations into their own class. Implemented observer pattern.
...
Observer pattern appears to have caused issues with updating Text objects.
Made annotations look nicer. Kinda.
#refactor
2017-05-24 03:09:11 +12:00
Michael Rausch
e26f2af93d
Merge branch 'develop' of https://eng-git.canterbury.ac.nz/seng302-2017/team-13 into develop
2017-05-22 13:30:48 +12:00
Michael Rausch
6a6ed3ed44
Server sends mark locations to test
...
- Added a timer to send boat location messages containing the mark locations to test the receiver
#story[891]
2017-05-18 13:32:24 +12:00