Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TicTacToe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Peter Schweers
TicTacToe
Commits
4b2be6e0
Commit
4b2be6e0
authored
2 months ago
by
jan-schw
Browse files
Options
Downloads
Patches
Plain Diff
add custom GameEvent
parent
1d356ed3
No related branches found
Branches containing commit
No related tags found
2 merge requests
!6
Add final version of the game to main branch
,
!5
Add basic implementation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/example/tictactoe_game/GameEvent.java
+13
-0
13 additions, 0 deletions
src/main/java/com/example/tictactoe_game/GameEvent.java
with
13 additions
and
0 deletions
src/main/java/com/example/tictactoe_game/GameEvent.java
0 → 100644
+
13
−
0
View file @
4b2be6e0
package
com.example.tictactoe_game
;
import
javafx.event.Event
;
import
javafx.event.EventType
;
public
class
GameEvent
extends
Event
{
public
static
final
EventType
<
GameEvent
>
VICTORY_EVENT
=
new
EventType
<
GameEvent
>(
"VICTORY_EVENT"
);
public
static
final
EventType
<
GameEvent
>
DRAW_EVENT
=
new
EventType
<
GameEvent
>(
"DRAW_EVENT"
);
public
GameEvent
(
EventType
<?
extends
Event
>
eventType
)
{
super
(
eventType
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment