public class Food extends Object
| Constructor and Description |
|---|
Food(Object id,
int x,
int y)
Create a food percept.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getId()
Get the space object id of the food.
|
int |
getX()
Get the x coordinate relative to the perceiving creature.
|
int |
getY()
Get the y coordinate relative to the perceiving creature.
|
void |
setId(Object id)
Set the space object id.
|
void |
setX(int x)
Set the x coordinate relative to the perceiving creature.
|
void |
setY(int y)
Set the y coordinate relative to the perceiving creature.
|
public Food(Object id, int x, int y)
public Object getId()
public void setId(Object id)
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
Copyright © 2013. All Rights Reserved.