gameeventlistener.java

来自「source code about game desktop」· Java 代码 · 共 37 行

JAVA
37
字号
// GameEventListener.java

 
/** 
 *
 * @author  Sean Bridges
 * @version 1.0
 *
 *  A GameEvent represents a significant event in the life cycle of a game.
 *  Events include, GameStarted, GameStopped, GameRestarted, and moves.
 *  Game events are generated by the GameMaster. 
 */
public interface GameEventListener 
{
  
	/**
	 * The game has started.
	 */
	public void gameStarted();
  
	/**
	 * The game has stopped
	 */
	public void gameStoped();
  
	/**  
	 * The game has been restarted.
	 */
	public void gameRestarted();
  
	/** 
	 * A player has moved.
	 */
	public void moveMade(Move aMove);
  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?