package Cluedo.g4;

import Cluedo.*;
import ui.*;
import java.util.*;
import java.io.*;
import java.awt.Color;

public class IntegerList extends Vector
{
	public int getInteger(int i)
	{
		return ((Integer)get(i)).intValue();
	}

	public boolean addInteger(int i)
	{
		add(new Integer(i));
		return true;	
	}
	
	public int[] toIntegers()
	{
		int [] list = new int[size()];
		for(int i = 0; i < size(); i++)
		{
			list[i] = getInteger(i);
		}
		
		return list;
	} 

	public IntegerList()
	{
		super();
	}
	
	public IntegerList(int capacity)
	{
		super(capacity);
	}
	
	public IntegerList(int capacity, int[] list)
	{
		super(capacity);
		for(int i = 0; i < list.length; i++)
		{
			addInteger(list[i]);
		}	
	}
}
