jawpgameservice.java
来自「Java mulitplayer strategy game. Adaptati」· Java 代码 · 共 51 行
JAVA
51 行
package net.sf.jawp.api.service;
import java.util.Collection;
import net.sf.jawp.api.domain.BattleReportVO;
import net.sf.jawp.api.domain.Fleet;
import net.sf.jawp.api.domain.GameSpeed;
import net.sf.jawp.api.domain.Planet;
import net.sf.jawp.api.domain.Realm;
/**
* Game specific methods.
* all methods are called for current player
* @author jarek
* @version $Revision: 1.12 $
*
*/
public interface JAWPGameService
{
/**
* return player realm
*/
Realm getRealm();
/**
* returns all visible planets
*/
Collection<Planet> getPlanets();
/**
* sends order to move fleet between given planets
* @throws IllegalArgumentException when from planet not owned by player
*/
void moveFleet( final long fromPlanetKey, final long toPlanetKey, final int size )
throws IllegalArgumentException;
/**
* returns other player realm
*/
Realm getOtherRealm(final long realmKey );
Collection<Fleet> getOwnFleets();
GameSpeed getGameSpeed();
Collection<BattleReportVO> getBattleReports();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?