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

📄 dosteptransaction.java

📁 Java mulitplayer strategy game. Adaptation of KDE Galaxy Conquest. (rules are changed - but still th
💻 JAVA
字号:
package net.sf.jawp.gf.system.transaction;

import java.util.Date;

import net.sf.jawp.gf.domain.GameWorldBase;
import net.sf.jawp.gf.domain.GameWorldRO;
import net.sf.jawp.gf.system.GameSystemCommand;
import net.sf.jawp.gf.system.RootSystem;

/**
 * 
 * @author jarek
 * @version $Revision: 1.3 $
 *
 * @param <GAME>
 * @param <GAMEVIEW>
 * @param <GAMESERVICE>
 */
public class DoStepTransaction<GAME extends GameWorldBase<GAMEVIEW>, GAMEVIEW extends GameWorldRO, GAMESERVICE> 
extends GameSystemCommand<Void, GAME, GAMEVIEW, GAMESERVICE>
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private final long timeSlice;
	
	public DoStepTransaction(final long time)
	{
		this.timeSlice = time;
	}
	
	public Void perform(final RootSystem<GAME, GAMEVIEW, GAMESERVICE> system, final Date time)
	{
		system.doStep(this.timeSlice);
		return null;
	}

}

⌨️ 快捷键说明

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