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
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
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
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
Kusal Ekanayake
835f79b113
Swapped to the local stream as default
2017-05-25 15:56:02 +12:00
Michael Rausch
3bd8added4
Merge remote-tracking branch 'origin/develop' into develop
2017-05-25 14:56:11 +12:00
Kusal Ekanayake
cec7014856
Set axis ons parkline style
2017-05-25 14:54:34 +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
Kusal Ekanayake
f1a9da83fc
Quick fixes before merge
2017-05-25 14:22:01 +12:00
Kusal Ekanayake
6e903bfbed
Merge branch 'develop' into 38b_LayLines
...
# Conflicts:
# src/main/java/seng302/App.java
# src/main/java/seng302/models/Yacht.java
# src/main/java/seng302/models/stream/StreamParser.java
2017-05-25 14:16:55 +12:00
Michael Rausch
23d62f552e
Merged develop onto this branch
...
Tidied code, removed print statements
#story[956] #pair[wmu16, mra106]
2017-05-25 14:06:33 +12:00
Kusal Ekanayake
53f6a6b8c5
Implimented a new way to determine positions
...
#story[952]
2017-05-25 14:06:33 +12:00
Michael Rausch
945acb6071
Merge remote-tracking branch 'origin/develop' into develop
2017-05-25 13:57:07 +12:00
Michael Rausch
af81bf5891
Merge remote-tracking branch 'origin/develop' into 38b_LayLines
...
# Conflicts:
# src/main/java/seng302/models/BoatGroup.java
# src/main/java/seng302/models/Event.java
# src/main/java/seng302/models/mark/Mark.java
# src/main/java/seng302/models/stream/StreamParser.java
2017-05-25 13:56:08 +12:00
Michael Rausch
e72ac1def8
Laylines are now togglable. Still not completely fool proof
...
Laylines appear only for the selected boat. The dissapear if the boat is not seleccted. Laylines are the colour of the boat
Laylines do not yet automatically update for a selected boat when it passes a mark
There is still a polling interval of a second in which if you select a boat after it has just passed a mark it still thinks the next mark is that mark and laylines are displayed incorrectly
#story[956] #pair[wmu16, mra106]
2017-05-25 13:48:48 +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
adbb9ffe3b
Removed completed TODO request.
2017-05-25 10:31:37 +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
a6d9c66fc9
Removed unused import statements and class variables. Removed non error print statements.
2017-05-25 10:20:39 +12:00
William Muir
99588c7ff8
Laylines now working upon selecting a boat. Still need to make their visibility togglable
...
Currently just paints upon clicking
tags: #story[956]
2017-05-25 09:54:00 +12:00
William Muir
68c3e3e999
Merged develop onto this branchk
...
tags: #story[956]
2017-05-25 09:21:47 +12:00
William Muir
67b5650288
Merge branch 'develop' into 38b_LayLines
...
# Conflicts:
# src/main/java/seng302/controllers/RaceViewController.java
# src/main/java/seng302/models/Yacht.java
2017-05-25 09:19:42 +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
William Muir
ffe70a8313
Trying to get laylines to display on proper respective sides of the gate
...
Having a great time here, Not quite working. There was an issue where the laylines are crossed and I think its tied to the fact that sometimes the two seperate points of the gate mark appear to have the same x y coordinate so the line function doesnt work? idk
tags: #story[956] #pair[wmu16]
2017-05-25 00:22:15 +12:00