public class UnitStackGroup
extends java.lang.Object
Constructor and Description |
---|
UnitStackGroup() |
UnitStackGroup(java.util.List list) |
UnitStackGroup(java.lang.String XML,
CountriesManager master) |
UnitStackGroup(UnitStack ug) |
Modifier and Type | Method and Description |
---|---|
void |
add(UnitStack ug) |
void |
add(UnitStackGroup other) |
int |
calculateDiceRollKills(boolean attacking) |
void |
consolidateUnits() |
boolean |
contains(UnitStack ug) |
boolean |
containsLoadedTransport() |
UnitStack |
get(int i) |
UnitStack |
getCastle() |
int |
getCost() |
Player |
getDominantOwner() |
int |
getNukeLevel() |
Team |
getTeam() |
int |
getTotalUnitCount() |
int |
getTransportWeight() |
boolean |
hasCastle() |
boolean |
isOnlyAirplanes() |
void |
killUnits(int numberToKill) |
void |
nukeAtLevel(int percent) |
void |
orderUnits() |
boolean |
pushToBack(UnitStack ug)
If the UG is in this list then move it to the back and return true.
|
boolean |
pushToFront(UnitStack ug)
If the UG is in this list then move it to the back and return true.
|
UnitStack |
remove(int i) |
boolean |
remove(UnitStack ug) |
void |
removeEmpties() |
UnitStackGroup |
removeExpireAfterAttackUnits()
Remove any units that expire after battles and return them.
|
UnitStackGroup |
removeNonLandableAirUnits()
Remove any air units that cannot invade and return them.
|
void |
setLandingCountry(Country orig) |
void |
setOriginalCountry(Country orig) |
int |
size() |
UnitStackGroup |
takeWeight(int takeWeight) |
java.lang.String |
toString() |
java.lang.String |
toStringXML() |
public UnitStackGroup()
public UnitStackGroup(java.util.List list)
public UnitStackGroup(java.lang.String XML, CountriesManager master)
public UnitStackGroup(UnitStack ug)
public void add(UnitStack ug)
public void add(UnitStackGroup other)
public int calculateDiceRollKills(boolean attacking)
public void consolidateUnits()
public boolean contains(UnitStack ug)
public boolean containsLoadedTransport()
public UnitStack get(int i)
public UnitStack getCastle()
public int getCost()
public Player getDominantOwner()
public int getNukeLevel()
public Team getTeam()
public int getTotalUnitCount()
public int getTransportWeight()
public boolean hasCastle()
public boolean isOnlyAirplanes()
public void killUnits(int numberToKill)
public void nukeAtLevel(int percent)
public void orderUnits()
public boolean pushToBack(UnitStack ug)
public boolean pushToFront(UnitStack ug)
public UnitStack remove(int i)
public boolean remove(UnitStack ug)
public void removeEmpties()
public UnitStackGroup removeExpireAfterAttackUnits()
public UnitStackGroup removeNonLandableAirUnits()
public void setLandingCountry(Country orig)
public void setOriginalCountry(Country orig)
public int size()
public UnitStackGroup takeWeight(int takeWeight)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringXML()