Package org.terasology.logic.behavior.tree

Examples of org.terasology.logic.behavior.tree.CounterNode


    @Test
    public void test00() {
        Interpreter interpreter = new Interpreter(null);
        DebugNode debugNode = new DebugNode(0);
        CounterNode counterNode = new CounterNode(0, debugNode);
        interpreter.start(counterNode);

        Assert.assertTrue(interpreter.tick(0) > 0);
        Assert.assertNull(debugNode.lastTask);
        Assert.assertTrue(interpreter.tick(0) == 0);
View Full Code Here


    @Test
    public void test01() {
        Interpreter interpreter = new Interpreter(null);
        DebugNode debugNode = new DebugNode(0);
        CounterNode counterNode = new CounterNode(1, debugNode);

        interpreter.start(counterNode);

        Assert.assertTrue(interpreter.tick(0) > 0);
        Assert.assertTrue(debugNode.lastTask.updateCalled);
View Full Code Here

    @Test
    public void test11() {
        Interpreter interpreter = new Interpreter(null);
        DebugNode debugNode = new DebugNode(1);
        CounterNode counterNode = new CounterNode(1, debugNode);

        interpreter.start(counterNode);

        Assert.assertTrue(interpreter.tick(0) > 0);
        DebugNode.DebugTask first = debugNode.lastTask;
View Full Code Here

TOP

Related Classes of org.terasology.logic.behavior.tree.CounterNode

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.