games.strategy.triplea.delegate.dataObjects
Class TechResults

java.lang.Object
  extended by games.strategy.triplea.delegate.dataObjects.TechResults
All Implemented Interfaces:
java.io.Serializable

public class TechResults
extends java.lang.Object
implements java.io.Serializable

Title:

Description:

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
unascribed
See Also:
Serialized Form

Constructor Summary
TechResults(int[] rolls, int hits, java.util.List<java.lang.String> advances, PlayerID id)
           
TechResults(java.lang.String errorString)
           
 
Method Summary
 java.util.List<java.lang.String> getAdvances()
           
 java.lang.String getErrorString()
          The error, null if no error occured, use isError to see if there was an error
 int getHits()
           
 PlayerID getPlayer()
           
 int[] getRolls()
           
 boolean isError()
          Was there an error?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TechResults

public TechResults(java.lang.String errorString)

TechResults

public TechResults(int[] rolls,
                   int hits,
                   java.util.List<java.lang.String> advances,
                   PlayerID id)
Parameters:
advances - - a List of Strings
Method Detail

isError

public boolean isError()
Was there an error?


getErrorString

public java.lang.String getErrorString()
The error, null if no error occured, use isError to see if there was an error


getHits

public int getHits()

getPlayer

public PlayerID getPlayer()

getRolls

public int[] getRolls()

getAdvances

public java.util.List<java.lang.String> getAdvances()
Returns:
a List of Strings