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

📄 gameevent.java

📁 手机无线网络纸牌游戏源代码。非常适合学习使用
💻 JAVA
字号:
// GameEvent.java
//
// Copyright (c) 2000-2001 Symbian Ltd. All rights reserved

package com.symbian.devnet.whist.game;

/**
 * Event that indicates reception of a new GameEvent.
 * <P>
 * Can be used to access the received data
 * @author Symbian Devnet
 */
public class GameEvent extends java.util.EventObject
{
	/** A reference to the content of the GameEvent data */
	private String data;
	
	/**	
	 * Constructor for the class. 
	 * @param source 	The Game object that produced this event
	 * @param data 		A reference to the raw data contained 
	 *           		within the GameEvent which will be available to 
	 *					listeners.
	 */
	public GameEvent(Object source, String data)
	{
		super(source);
		this.data = data;
	}

	/** 
	 * Method to retrieve a reference to the raw data
	 * contained within the received GameEvent that
	 * caused this event
	 */	
	public String getData()
	{
		String newdata = data;
		return newdata;
	}
}

⌨️ 快捷键说明

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