/*
 * Food.java
 *
 * Created on 18 July 2002, 15:42
 */

/**
 *
 * @author  gbspashj
 */


import java.awt.*;

public class Food implements Actor {
    int x;
    int y;
    int value = 5;
    
    /** Creates a new instance of Food */
    public Food(int x, int y) {
        this.x = x;
        this.y = y;
    }
    
    public Food(int x, int y, int value) {
        this.x = x;
        this.y = y;
        this.value = value;
    }
    
    public int getX() {
        return x;
    }
    
    public int getY() {
        return y;
    }
  
    public int getValue() {
        return value;
    }
    
    public void visit(ActorVisitor av) {
        av.visitFood(this);
    }
    
}
