Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Haakon Gunleiksrud
TDT4240_v20_haakon
Commits
3b0d79fa
Commit
3b0d79fa
authored
Apr 17, 2020
by
Turid Cecilie Dahl
Browse files
#97 Adds tournament fetching when clicking in on a tournament
parent
707bc27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/core/src/com/gameware/game/states/ViewTournamentState.java
View file @
3b0d79fa
...
...
@@ -21,6 +21,7 @@ import com.gameware.game.models.Round;
import
com.gameware.game.models.Tournament
;
import
com.gameware.game.sprites.LoadingText
;
import
java.io.IOException
;
import
java.util.List
;
public
class
ViewTournamentState
extends
State
{
...
...
@@ -61,7 +62,12 @@ public class ViewTournamentState extends State {
public
ViewTournamentState
(
GameStateManager
gsm
,
Tournament
tournament
,
Round
r
)
{
super
(
gsm
);
this
.
tournament
=
tournament
;
try
{
this
.
tournament
=
QueryIntermediate
.
getSpecificTournament
(
tournament
.
get_id
());
}
catch
(
IOException
e
){
this
.
tournament
=
tournament
;
}
this
.
round
=
r
;
titleLabel
.
setText
(
tournament
.
getName
());
roundDeadline
.
setText
(
"Round deadline\n"
+
round
.
getDeadlineDate
().
toLocaleString
());
...
...
Write
Preview
Supports
Markdown
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