home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-02-21 | 634 b | 23 lines |
- package multi;
-
- import java.io.*;
- import java.util.*;
-
- public class sample {
- public static void main(String[] args)
- throws IOException, ConnectionRefusedException {
- World world = new World(args[0], Integer.parseInt(args[1]));
- while (true) {
- for (Enumeration en = world.getEntities(); en.hasMoreElements();) {
- Entity e = (Entity) en.nextElement();
- if (e != null)
- if (e.hasChanged()) {
- e.dump();
- e.markUnchanged();
- }
- }
- }
- }
- }
-
-