This repository has been archived on 2021-02-18. You can view files and clone it, but cannot push or open issues or pull requests.
2019-11-06 19:52:52 +01:00
|
|
|
package dev.kske.chess.event;
|
|
|
|
|
|
|
|
import dev.kske.chess.game.Game;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Project: <strong>Chess</strong><br>
|
|
|
|
* File: <strong>GameStartEvent.java</strong><br>
|
|
|
|
* Created: <strong>30 Oct 2019</strong><br>
|
2020-05-19 16:50:12 +02:00
|
|
|
*
|
2019-11-06 19:52:52 +01:00
|
|
|
* @since Chess v0.5-alpha
|
|
|
|
* @author Kai S. K. Engelbart
|
|
|
|
*/
|
|
|
|
public class GameStartEvent implements Event<Game> {
|
|
|
|
|
|
|
|
private final Game game;
|
|
|
|
|
2020-01-19 22:12:33 +01:00
|
|
|
/**
|
|
|
|
* Creates an instance of {@link GameStartEvent}.
|
|
|
|
*
|
|
|
|
* @param source the game started
|
|
|
|
*/
|
2020-05-19 16:50:12 +02:00
|
|
|
public GameStartEvent(Game source) {
|
|
|
|
game = source;
|
|
|
|
}
|
2019-11-06 19:52:52 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public Game getData() { return game; }
|
|
|
|
}
|