/*
 *  Case.cpp
 *  TicTaeToe
 *
 *  Created by Lionel BUCHELE on 29/04/11.
 *  Copyright 2011 EFREI. All rights reserved.
 *
 */

#include "Thebault-Buchele-Case.h"
#include <iostream>

Case::Case()
{
}
Case::Case(int x, int y)
{
	this->x = x;
	this->y = y;
	available_case = 0;
}

void Case::init(int x , int y)
{
	this->x = x;
	this->y = y;
	available_case = 0;
}

int Case::getAvailable_case()
{
	return this->available_case;
}

void Case::setAvailable_case(int a)
{
	this->available_case = a;
}

int Case::getX()
{
	return this->x;
}

int Case::getY()
{
	return this->y;
}

bool operator==(Case &a, Case &b)
{
	if(a.getAvailable_case() == b.getAvailable_case())
		return true;
	else return false;
}

bool operator==(Case &a, const int &b)
{
	if(a.getAvailable_case() == b)
		return true;
	else return false;	
}