Skip to content
Snippets Groups Projects
Commit 4b2be6e0 authored by jan-schw's avatar jan-schw
Browse files

add custom GameEvent

parent 1d356ed3
No related branches found
No related tags found
2 merge requests!6Add final version of the game to main branch,!5Add basic implementation
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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment