Package koth.user

Examples of koth.user.Human


            }
            if (!running || simulator.getGame().isFinished())
                return;
            // If it is a human, wait until graphical interaction
            if (simulator.getAi() instanceof Human) {
                Human human = (Human)simulator.getAi();
                synchronized (lock) {
                    waiting = true;
                    pawn = null;
                    action = null;
                    while (waiting && running) {
                        try {
                            lock.wait(100);
                        } catch (InterruptedException e) {}
                    }
                    human.set(action);
                    waiting = false;
                    pawn = null;
                    action = null;
                }
            }
View Full Code Here

TOP

Related Classes of koth.user.Human

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.