Package

Source Code of MakeSomePieces

import board.Board;
import piece.Eye;
import piece.Square;


/**
* Write a description of class MakeSomePieces here.
*
* @author (your name)
* @version (a version number or a date)
*/


public class MakeSomePieces
{
    // instance variables - replace the example below with your own
    public Board   board;
    public Square   square;
    public Eye      eye;

    /**
     * Constructor for objects of class MakeSomePieces
     */
    public MakeSomePieces()
    {
        // initialise instance variables
        board = new Board(20, 10);
    }

    /**
     * An example of a method - replace this comment with your own
     *
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y
     */
    public void doStuff()
    {
        Boolean didRotate;
       
        square = new Square(33);
        eye = new Eye(5, 5);
        didRotate = square.rotate(null);
        System.out.println("Trying to rotate square resulted in " + didRotate);
        didRotate = eye.rotate(null);
        System.out.println("Trying to rotate eye resulted in " + didRotate);
    }
}

TOP

Related Classes of MakeSomePieces

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.