Package org.javatari.pc.room

Examples of org.javatari.pc.room.Room


    // Load Parameters from properties file and process arguments
    Parameters.init(args);

    // Build a ClientRoom for P2 Client play and turn everything on
    final Room clientRoom = Room.buildClientRoom();
    clientRoom.powerOn();
   
    // Start connection to P1 Server
    askUserForConnection(clientRoom);

  }
View Full Code Here


    // Load Parameters from properties file and process arguments
    Parameters.init(args);

    // Build a ServerRoom for P1 Server play and turn everything on
    final Room serverRoom = Room.buildServerRoom();
    serverRoom.powerOn();
   
    // Start listening for P2 Client connections
    startListening(serverRoom);

  }
View Full Code Here

   
     // Force test Cartridge as main argument
    Parameters.mainArg = "file:///C:/cartridges/Hero.bin";
   
    // Build a Room for Standalone play
    final Room room = Room.buildStandaloneRoom();

    // Turn everything on
    room.powerOn();

     // Keep logging info about clocks speeds achieved
     (new Thread() { @Override public void run() {
       while(true) {
        System.out.println(room.currentConsole().mainClock() + ", " + room.screen().monitor().clock + ", " + room.speaker().clock);
        try { Thread.sleep(1000); } catch (InterruptedException e) {}
      }
     }}).start();
 
  }
View Full Code Here

TOP

Related Classes of org.javatari.pc.room.Room

Copyright © 2018 www.massapicom. 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.