Package main.ch.morrolan.gibb.snake

Examples of main.ch.morrolan.gibb.snake.Entity.moveDown()


    @Test
    public void moveDown() {
        Entity entity = new Entity(0, 0);

        entity.moveDown(11);
        assertEquals(new Point(0, 11), entity.position);

        entity.moveDown(-15);
        assertEquals(new Point(0, -4), entity.position);
    }
View Full Code Here


        Entity entity = new Entity(0, 0);

        entity.moveDown(11);
        assertEquals(new Point(0, 11), entity.position);

        entity.moveDown(-15);
        assertEquals(new Point(0, -4), entity.position);
    }

    @Test
    public void moveLeft() {
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.