Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
battleships
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bradley.vernon
battleships
Commits
a0fb468d
Commit
a0fb468d
authored
May 17, 2019
by
Darth Vernon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Main Comments
parent
2b5e50d5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
91 deletions
+93
-91
BSGUI.fxml
src/BSGUI.fxml
+3
-3
BSMain.java
src/BSMain.java
+90
-81
Players.java
src/Players.java
+0
-7
No files found.
src/BSGUI.fxml
View file @
a0fb468d
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<Button
fx:id=
"fire"
layoutX=
"532.0"
layoutY=
"617.0"
mnemonicParsing=
"false"
onAction=
"#fireAction"
prefHeight=
"28.0"
prefWidth=
"184.0"
text=
"*FIRE*"
/>
<Button
fx:id=
"fire"
layoutX=
"532.0"
layoutY=
"617.0"
mnemonicParsing=
"false"
onAction=
"#fireAction"
prefHeight=
"28.0"
prefWidth=
"184.0"
text=
"*FIRE*"
/>
<Button
fx:id=
"quit"
layoutX=
"532.0"
layoutY=
"646.0"
mnemonicParsing=
"false"
onAction=
"#quitAction"
prefHeight=
"25.0"
prefWidth=
"184.0"
text=
"*QUIT*"
/>
<Button
fx:id=
"quit"
layoutX=
"532.0"
layoutY=
"646.0"
mnemonicParsing=
"false"
onAction=
"#quitAction"
prefHeight=
"25.0"
prefWidth=
"184.0"
text=
"*QUIT*"
/>
<Button
fx:id=
"battleStage"
layoutX=
"716.0"
layoutY=
"646.0"
mnemonicParsing=
"false"
onAction=
"#stageAction"
prefHeight=
"25.0"
prefWidth=
"184.0"
text=
"*BATTLE STAGE*"
/>
<Button
fx:id=
"battleStage"
layoutX=
"716.0"
layoutY=
"646.0"
mnemonicParsing=
"false"
onAction=
"#stageAction"
prefHeight=
"25.0"
prefWidth=
"184.0"
text=
"*BATTLE STAGE*"
/>
<Label
fx:id=
"status"
layoutX=
"165.0"
layoutY=
"673.0"
prefHeight=
"25.0"
prefWidth=
"455.0"
text=
"S
tatus : NO HITS
"
/>
<Label
fx:id=
"status"
layoutX=
"165.0"
layoutY=
"673.0"
prefHeight=
"25.0"
prefWidth=
"455.0"
text=
"S
hips left:
"
/>
<GridPane
gridLinesVisible=
"true"
layoutX=
"8.0"
layoutY=
"20.0"
prefHeight=
"552.0"
prefWidth=
"501.0"
>
<GridPane
gridLinesVisible=
"true"
layoutX=
"8.0"
layoutY=
"20.0"
prefHeight=
"552.0"
prefWidth=
"501.0"
>
<columnConstraints>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
...
@@ -283,8 +283,8 @@
...
@@ -283,8 +283,8 @@
</GridPane>
</GridPane>
<Label
fx:id=
"occupiedSpace"
layoutX=
"165.0"
layoutY=
"690.0"
prefHeight=
"17.0"
prefWidth=
"734.0"
text=
"Your occupied coordinates are :"
/>
<Label
fx:id=
"occupiedSpace"
layoutX=
"165.0"
layoutY=
"690.0"
prefHeight=
"17.0"
prefWidth=
"734.0"
text=
"Your occupied coordinates are :"
/>
<Label
fx:id=
"enemyHM"
layoutX=
"532.0"
layoutY=
"600.0"
prefHeight=
"17.0"
prefWidth=
"368.0"
text=
"Computer: Prepare to die!"
/>
<Label
fx:id=
"enemyHM"
layoutX=
"532.0"
layoutY=
"600.0"
prefHeight=
"17.0"
prefWidth=
"368.0"
text=
"Computer: Prepare to die!"
/>
<Label
fx:id=
"takenShips"
layout
Y=
"707.0"
prefHeight=
"17.0"
prefWidth=
"501.0"
text=
"Taken Ships:
"
/>
<Label
fx:id=
"takenShips"
layout
X=
"54.0"
layoutY=
"707.0"
prefHeight=
"17.0"
prefWidth=
"992.0"
text=
"No ships taken yet
"
/>
<Label
fx:id=
"lostShips"
layoutX=
"5
09.0"
layoutY=
"707.0"
prefHeight=
"17.0"
prefWidth=
"540.0"
text=
"Lost Ships:
"
/>
<Label
fx:id=
"lostShips"
layoutX=
"5
4.0"
layoutY=
"727.0"
prefHeight=
"17.0"
prefWidth=
"992.0"
text=
"No ships lost.. yet
"
/>
<Label
fx:id=
"hits"
layoutX=
"165.0"
layoutY=
"572.0"
prefHeight=
"17.0"
prefWidth=
"344.0"
text=
"Hits:"
/>
<Label
fx:id=
"hits"
layoutX=
"165.0"
layoutY=
"572.0"
prefHeight=
"17.0"
prefWidth=
"344.0"
text=
"Hits:"
/>
</children>
</children>
</AnchorPane>
</AnchorPane>
...
...
src/BSMain.java
View file @
a0fb468d
This diff is collapsed.
Click to expand it.
src/Players.java
deleted
100644 → 0
View file @
2b5e50d5
public
class
Players
{
Grid
GC
=
new
Grid
();
ShipClass
SC
=
new
ShipClass
();
BattleClass
BC
=
new
BattleClass
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment