/*
 * File: ./REMOTEINTERFACE/MOVEHELPER.JAVA
 * From: REMOTE.IDL
 * Date: Thu Jan 21 23:55:04 1999
 *   By: C:\JDK1.2\BIN\IDLTOJ~1.EXE Java IDL 1.2 Nov 10 1997 13:52:11
 */

package RemoteInterface;
public class MoveHelper {
     // It is useless to have instances of this class
     private MoveHelper() { }

    public static void write(org.omg.CORBA.portable.OutputStream out, RemoteInterface.Move that) {
	out.write_long(that.newPosition);
	out.write_long(that.playerId);
    }
    public static RemoteInterface.Move read(org.omg.CORBA.portable.InputStream in) {
        RemoteInterface.Move that = new RemoteInterface.Move();
	that.newPosition = in.read_long();
	that.playerId = in.read_long();
        return that;
    }
   public static RemoteInterface.Move extract(org.omg.CORBA.Any a) {
     org.omg.CORBA.portable.InputStream in = a.create_input_stream();
     return read(in);
   }
   public static void insert(org.omg.CORBA.Any a, RemoteInterface.Move that) {
     org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
     write(out, that);
     a.read_value(out.create_input_stream(), type());
   }
   private static org.omg.CORBA.TypeCode _tc;
   synchronized public static org.omg.CORBA.TypeCode type() {
       int _memberCount = 2;
       org.omg.CORBA.StructMember[] _members = null;
          if (_tc == null) {
               _members= new org.omg.CORBA.StructMember[2];
               _members[0] = new org.omg.CORBA.StructMember(
                 "newPosition",
                 org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_long),
                 null);

               _members[1] = new org.omg.CORBA.StructMember(
                 "playerId",
                 org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_long),
                 null);
             _tc = org.omg.CORBA.ORB.init().create_struct_tc(id(), "Move", _members);
          }
      return _tc;
   }
   public static String id() {
       return "IDL:RemoteInterface/Move:1.0";
   }
}
