Examples of GameEngine


Examples of age.GameEngine

import age.GameEngine;

public class Main {

  public static void main(String[] args){
    GameEngine game = new GameEngine();
    game.addGameController(0, new Fase1());
    game.setSpeed(1);
    game.run();
  }
View Full Code Here

Examples of age.GameEngine

   * Carrega um gameController para fins de teste.
   * @param gc GameController a ser rodado.
   * @param engineSpeed Velocidade da GameEngine (0 para velocidade m�xima).
   */
  public static void testGameController(GameController gc, int engineSpeed){
    GameEngine engine = new GameEngine();
    engine.addGameController(0, gc);
    engine.setSpeed(engineSpeed);
    engine.run();
  }
View Full Code Here

Examples of age.GameEngine

import age.GameEngine;

public class Main {

  public static void main(String[] args){
    GameEngine game = new GameEngine();
    //game.addGameController(0, new Fase1());
    game.setSpeed(1);
    game.run();
  }
View Full Code Here

Examples of age.GameEngine

import age.GameEngine;

public class Main {

  public static void main(String[] args){
    GameEngine game = new GameEngine();
    game.addGameController(0, new LocalDeTeste());
    game.setSpeed(1);
    game.run();
  }
View Full Code Here

Examples of com.antonytrupe.server.games.GameEngine

  private static GameEngine ge;

  @Before
  public void before() {
    ge = new GameEngine(new String[] { "/com/antonytrupe/tend/Resource.js",
        "/com/antonytrupe/tend/ResourceGroup.js",
        "/com/antonytrupe/tend/Point.js",
        "/com/antonytrupe/tend/Board.js",
        "/com/antonytrupe/tend/Player.js",
        "/com/antonytrupe/tend/Trade.js",
View Full Code Here

Examples of com.antonytrupe.server.games.GameEngine

    ScriptableObject board = api.createBoard();
    assertEquals(32, board.get("size"));

    assertEquals(null, board.get("id"));

    GameEngine ge = new GameEngine(new String[] {
        "/com/antonytrupe/tend/Resource.js",
        "/com/antonytrupe/tend/ResourceGroup.js",
        "/com/antonytrupe/tend/Point.js",
        "/com/antonytrupe/tend/Board.js",
        "/com/antonytrupe/tend/Player.js",
        "/com/antonytrupe/tend/Trade.js",
        "/com/antonytrupe/tend/Settlement.js" });
    ge.invoke(board, "update", new String[] { "{\"board\":"
        + "{\"id\":1,\"players\":{}}" + "}" });
    assertEquals(1, board.get("id"));
  }
View Full Code Here

Examples of ipm.gerdc.baccarat.core.GameEngine

      screen = new Dimension();
      screen.width = screenSize.width - 100;
      screen.height = screenSize.height * 2 / 3;
      System.out.println(TextFactory.textList.get("GameTitle") + "\nLanguage: " + TextFactory.textList.get("SysLang") + "\n" + GameTools.getCurrentTime());
      gameList = new ArrayList<GameInfoBean>();
      gameEngine = new GameEngine();
      frm = new MainFrame(new Main());
      frm.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
      frm.setIconImage(UIFactory.makeImageIcon("logo").getImage());
      frm.setTitle(TextFactory.textList.get("GameTitle"));
      frm.setUndecorated(false);
View Full Code Here

Examples of org.moparscape.msc.gs.core.GameEngine

    running = true;
    world.setServer(this);

    try {
      connector = new LoginConnector();
      engine = new GameEngine();
      engine.start();
      while (!connector.isRegistered()) {
        Thread.sleep(100);
      }
View Full Code Here

Examples of org.scotlandyard.impl.engine.GameEngine

*/
public class ResetEngineTest {

  @Test  // TODO add test description
  public final void testGetOutput() throws Exception{
    final GameEngine engine=GameEngine.instance();
   
    assertEquals(
        "testing the number of maps before adding anything",
        0,
        engine.getBoardMaps().size()
        );
   
    assertEquals(
        "testing the number of games before adding anything",
        0,
        engine.getLobby().getAvailableGames().size()
        );
   
    assertEquals(
        "testing the number of users before adding anything",
        0,
        engine.getUsers().size()
        );
    GameImpl.getNewInstance("game1", null, null);
    GameImpl.getNewInstance("game2", null, null);
    UserImpl.getNewInstance("user", "email");
    BoardMapImpl.getNewInstance("map");

    assertEquals(
        "testing the number of maps after adding new values",
        1,
        engine.getBoardMaps().size()
        );
   
    assertEquals(
        "testing the number of games after adding new values",
        2,
        engine.getLobby().getAvailableGames().size()
        );
   
    assertEquals(
        "testing the number of users after adding new values",
        1,
        engine.getUsers().size()
        );
   
    String json = (String)new ResetGameEngine().processRequest(null, engine);
   
    assertEquals(
        "testing the output json object is not an exception",
        "The engine has been reset",
        JsonFactory.fromJson(json).message
        );
    assertEquals(
        "testing the number of maps after reseting the engine",
        0,
        engine.getBoardMaps().size()
        );
   
    assertEquals(
        "testing the number of games after reseting the engine",
        0,
        engine.getLobby().getAvailableGames().size()
        );
   
    assertEquals(
        "testing the number of users after reseting the engine",
        0,
        engine.getUsers().size()
        );
  }
View Full Code Here

Examples of org.scotlandyard.impl.engine.GameEngine

*/
public class GamePlayersTest {

  @Test//TODO add description here
  public final void testProcessRequest() throws Exception{
    final GameEngine engine = GameEngine.instance();
    final MockParametersMap map = new MockParametersMap();
   
    BoardMap boardMap = BoardMapImpl.getNewInstance("pnth");
    boardMap.prepareMap("web/maps/pnth.xml");
    User user = UserImpl.getNewInstance("Hussain", "hussain@game.com");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.