Package nl.nuggit.randomstranger.language

Examples of nl.nuggit.randomstranger.language.Discussion.lastSpokenBy()


        }
    }

    private void continueDiscussion() {
        Discussion discussion = memory.currentDiscussion();
        if (!discussion.lastSpokenBy(name) && discussion.getSilenceSeconds() > 2) {
            String response = determineResponse(discussion);
            if (response != null) {
                send(response);
            }
        }
View Full Code Here


            String response = determineResponse(discussion);
            if (response != null) {
                send(response);
            }
        }
        else if (discussion.lastSpokenBy(name) && memory.getAloneSeconds() > 60) {
            send("I guess nobody wants to talk to me.");
            memory.killDiscussion();
        }
        else if (discussion.lastSpokenBy(name) && discussion.getSilenceSeconds() > 30) {
            send("helloooooo?");
View Full Code Here

        }
        else if (discussion.lastSpokenBy(name) && memory.getAloneSeconds() > 60) {
            send("I guess nobody wants to talk to me.");
            memory.killDiscussion();
        }
        else if (discussion.lastSpokenBy(name) && discussion.getSilenceSeconds() > 30) {
            send("helloooooo?");
        }
    }

    private String determineResponse(Discussion discussion) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.