games.strategy.triplea.delegate.dataObjects
Class PlaceableUnits
java.lang.Object
games.strategy.triplea.delegate.dataObjects.PlaceableUnits
- All Implemented Interfaces:
- java.io.Serializable
public class PlaceableUnits
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
PlaceableUnits(java.util.Collection<Unit> units,
int maxUnits)
|
PlaceableUnits(java.lang.String errorMessage)
Creates new ProductionResponseMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PlaceableUnits
public PlaceableUnits(java.lang.String errorMessage)
- Creates new ProductionResponseMessage
PlaceableUnits
public PlaceableUnits(java.util.Collection<Unit> units,
int maxUnits)
getUnits
public java.util.Collection<Unit> getUnits()
getMaxUnits
public int getMaxUnits()
- Returns:
- -1 if no limit
getErrorMessage
public java.lang.String getErrorMessage()
isError
public boolean isError()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object