megamek.common.containers
Class PlayerIDandList<Data>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<Data>
              extended by megamek.common.containers.PlayerIDandList<Data>
Type Parameters:
Data - the datatype for the vector.
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Data>, java.util.Collection<Data>, java.util.List<Data>, java.util.RandomAccess

public class PlayerIDandList<Data>
extends java.util.Vector<Data>

Author:
dirk This class is one of the common container types which is a player id combined with a list of other data, such as when transmitting artillery auto hit coordinates.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PlayerIDandList()
           
 
Method Summary
 int getPlayerID()
          Returns the player ID
 void setPlayerID(int playerID)
          sets the playerID
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayerIDandList

public PlayerIDandList()
Method Detail

getPlayerID

public int getPlayerID()
Returns the player ID

Returns:
the playerID

setPlayerID

public void setPlayerID(int playerID)
sets the playerID

Parameters:
playerID - the playerID