/**
 *OperateRegister.java
 *Purpose: Class will allow functionality for the Employee to use a register
 *@author Joel Grochowski
 *@version 1.0
 */

public class OperateRegister extends ObjectJob
{
  /**
   *int x 
   *Purpose: The x coordinate where the employee is going to use a register
   */
  private int x;

  /**
   *int y
   *Purpose: The y coordinate where the employee is going to use a register
   */
  private int y;

  /**
   *OperateRegister()
   *Purpose: Constructor for OperateRegister
   *@param none
   */
  public OperateRegister()
  {
    super("OperateRegister");
  }

  /**
   *sendToRegister()
   *Purpose: Send the Employee to the nearest register 
   *@param none
   *@return void
   */
  public void sendToRegister()
  {
  }

  /**
   *sendToRegister(int x, int y)
   *Purpose: Send the Employee to the specific register at these coordinates.
   *         If the register is being used or there is no register there,
   *         then the employee will use the sendToRegister function without
   *         parameters
   *@param x the x coordinate of where the employee will be sent
   *@param y the y coordinate of where the employee will be sent
   *@return void
   */
  public void sendToRegister(int x, int y)
  {
    this.x = x;
    this.y = y;
  }

  /**
   *getTargetX()
   *Purpose: Accessor to find the X coordinate of the destination
   *@param none
   *@return void
   */
  public int getTargetX()
  {
    return x;
  }

  /**
   *getTargetY()
   *Purpose: Accessor to find the Y coordinate of the destination
   *@param none
   *@return void
   */
  public int getTargetY()
  {
    return y;
  }

  /**
   *checkOpenRegister()
   *Purpose: Determine if there is an open register available
   *@param none
   *@return boolean true if there is an open register, false otherwise
   */
  public boolean checkOpenRegister()
  {
    //needs to check the map for open registers
    //not implemented yet
    return false;
  }
}
