⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultgameeventlistener.java

📁 source code about game desktop
💻 JAVA
字号:
//DefaultGameEventListener.java
 
/** 
 *
 * @author  Sean Bridges
 * @version 1.0
 *
 *  The DefaultGameEventListener implements do nothing 
 *  methods for all the evetns.  Subclasses can override methods that 
 *  they are interested in.
 *
 *  A GameEvent represents a significant event in the life cycle of a game.
 *  Events include, GameStarted, GameStopped, GameRestarted, and moves
 */
public class DefaultGameEventListener implements 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -