home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch19 / filter / User.java < prev    next >
Encoding:
Java Source  |  1997-02-16  |  750 b   |  39 lines

  1. // The Virtual Light Company 1996
  2. //
  3. // From Chapter 20: Late Night VRML 2.0 and java
  4. //
  5. // This is the Filtering server starter class.
  6.  
  7. package filter;
  8.  
  9. import java.net.*;
  10.  
  11. public class User
  12. {
  13.     public int    entid;
  14.     public long    last_update;
  15.     public InetAddress    address;
  16.     public int    last_seq_num;
  17.     public int    update_port;
  18.     public float    acuity;
  19.     public float    size;
  20.     public int    horizon;
  21.     public int    current_region;
  22.     public int[]    regions;
  23.     public int[]    ports;
  24.     public float[]    position;
  25.     public float[]    rotation = {0, 0, 1, 0};
  26.  
  27.     public User(int update, float ac, int horz, int[] reg, int[] prt)
  28.     {
  29.         update_port = update;
  30.         acuity = ac;
  31.         horz = horizon;
  32.         regions = reg;
  33.         ports = prt;
  34.         last_update = System.currentTimeMillis();
  35.  
  36.         position = null;
  37.     }
  38. }
  39.