/*
* 12:47:02
* vjanssen
*/
package a0902d_f_Philosophen_VORLAGE;

import java.awt.Graphics;

public class Gabel
{

	private String name;
	private int xVer;
	private int yVer;
	private static AF_Gabel gabel= new AF_Gabel();
	
	public Gabel()
	{
		super();
	}
	
	public Gabel (String name, int xVer, int yVer)
	{
		this.name = name;
		this.xVer = xVer;
		this.yVer = yVer;
	}

	public void zeichne(Graphics g, boolean sichtbar)
	{
		if (sichtbar)
		{
			gabel.drawObjekt(g, this.xVer, this.yVer);
			g.drawString(this.name, 150 + this.xVer, 230 + this.yVer);
		}
	} 
}
