//***********************************************************
//*
//* File:           HumanPlayer.java
//* Author:         Srikant Krishna
//* Contact:        srikant@cs.columbia.edu
//* Update:         10.16.2002
//*
//* Description:    Interactive player for Project 3.
//*                 Primary role is to serve as a dummy
//*                 for a GUI text field.
//*
//***********************************************************

package Rectangles;

import ui.*;
import java.util.*;
import java.io.*;
import java.awt.Color;

public final class HumanPlayer implements IFCPlayer {

    int _id;
    String _name;
    Rectangles _rect;
    static final Color  _CCOLOR = new Color(0.4f, 0.7f, 0.6f);
    static int _ocount;

    public Robot[] register(Rectangles __rectangles) throws Exception {
        Robot[] RET;
        int _MAX = __rectangles.numRobots();
        
        _rect = __rectangles;
        _id = _ocount++;        
        _name = "Human["+_id+"]";

        RET = new Robot[_MAX];
        for (int i=0; i < _MAX; i++) {
            RET[i] = new Robot(0, 0);
        }
        return RET;
    }

    public char[] move() throws Exception {
        return null;
    }

    public String name() throws Exception {
        return _name;
    }

    public Color color() throws Exception {
        return _CCOLOR;
    }

    public boolean interactive() throws Exception {
        return true;
    }        
}
