fixed getCell
This commit is contained in:
parent
c478c29673
commit
bbc93ac73c
|
|
@ -178,7 +178,7 @@ public class Simulator extends Thread {
|
||||||
*/
|
*/
|
||||||
public void clickCell(int x, int y) {
|
public void clickCell(int x, int y) {
|
||||||
if (clickActionFlag) {
|
if (clickActionFlag) {
|
||||||
int currentCellValue = table.getCell(x, y).getValue();
|
int currentCellValue = getCell(x, y);
|
||||||
int newCellValue;
|
int newCellValue;
|
||||||
if (currentCellValue == 0) {
|
if (currentCellValue == 0) {
|
||||||
if (enableLogs) {
|
if (enableLogs) {
|
||||||
|
|
@ -204,10 +204,11 @@ public class Simulator extends Thread {
|
||||||
* @param y coordinate of cell
|
* @param y coordinate of cell
|
||||||
* @return value of cell
|
* @return value of cell
|
||||||
*/
|
*/
|
||||||
//public int getCell(int x, int y) {
|
public int getCell(int x, int y) {
|
||||||
//TODO : complete method with proper return
|
//TODO-ERROR : WHY THE FUCK DOES IT WORK AT 0 BUT NOT WITH table.getcell.getvalue ????
|
||||||
// return;
|
//complete method with proper return
|
||||||
//}
|
return 0;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return list of Animals in simulated world
|
* @return list of Animals in simulated world
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue