/*
 * Created on 29.01.2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package de.farafin.snEADy.world;

import de.farafin.snEADy.GameParameter;
import de.farafin.snEADy.communication.D_Vec2D;
import de.farafin.snEADy.communication.RingVector;

/**
 * @author roland, lars
 *
 * TODO what does that class do?
 * 
 */
public final class C_GPoints extends C_Goody
{

	/** how much should the player change its speed? */
	private int amount = 0;

	/** default constructor */
	protected C_GPoints()
	{
		this.faceDirection = FACE_NORTH;
		this.headPosition = new D_Vec2D(0, 0);
		this.nextUpdateTime = -1;
		this.amount = 0;
		this.objPositions = new RingVector();
		this.objPositions.addLast(this.headPosition.clone());
		this.ownChar = POINTS;
		this.waitCycles = -1;
	}

	protected C_GPoints(D_Vec2D pos, int amount, GameParameter parameter)
	{
		super((D_Vec2D)pos.clone(), FACE_NORTH, POINTS, -1, parameter);
		this.nextUpdateTime = -1;
		this.amount = amount;
	}
	
	
	/* (non-Javadoc)
	 * @see de.farafin.GameParameter.world.C_GameObject#update(de.farafin.GameParameter.world.C_Arena)
	 */
	protected void update(C_Arena arena)
	{
	// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see de.farafin.GameParameter.world.C_Goody#wasEatenBy(de.farafin.GameParameter.world.C_Snake)
	 */
	protected void wasEatenBy(C_Snake snake)
	{
		snake.pilot.killPoints += amount;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString()
	{
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#clone()
	 */
	protected Object clone()
	{
		// TODO Auto-generated method stub
		return null;
	}

}
