|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.TurnOrdered
megamek.common.Team
public final class Team
The Team class holds a list of information about a team. It holds the initative for the team, and contains a list of players on that team. It also implements functions that gather the number of units each team has.
| Constructor Summary | |
|---|---|
Team(int newID)
|
|
| Method Summary | |
|---|---|
void |
addPlayer(Player p)
|
void |
clearInitiative(boolean bUseInitComp)
Clear the initiative of this object. |
TurnVectors |
determineTeamOrder(IGame game)
|
boolean |
equals(java.lang.Object object)
Two teams are equal if their ids and players are equal. |
int |
getAeroTurns()
|
java.util.Vector<java.lang.Integer> |
getAirborneVTOL()
cycle through entities on team and collect all the airborne VTOL/WIGE |
int |
getDropshipTurns()
|
int |
getEvenTurns()
|
int |
getId()
|
int |
getInitCompensationBonus(boolean bUseInitCompensation)
|
int |
getJumpshipTurns()
|
int |
getMultiTurns(IGame game)
|
int |
getNormalTurns(IGame game)
Return the number of "normal" turns that this item requires. |
int |
getOtherTurns()
|
java.util.Enumeration<Player> |
getPlayers()
|
int |
getSize()
|
int |
getSmallCraftTurns()
|
int |
getSpaceStationTurns()
|
int |
getTotalInitBonus(boolean bInitiativeCompensationBonus)
cycle through players team and select the best initiative take negatives only if the current bonus is zero |
int |
getWarshipTurns()
|
boolean |
hasTAG(IGame game)
|
void |
resetTeam()
|
void |
setInitCompensationBonus(int nNewValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Team(int newID)
| Method Detail |
|---|
public int getSize()
public java.util.Enumeration<Player> getPlayers()
public void resetTeam()
public void addPlayer(Player p)
public void clearInitiative(boolean bUseInitComp)
clearInitiative in class TurnOrderedpublic TurnVectors determineTeamOrder(IGame game)
public int getId()
public int getNormalTurns(IGame game)
getNormalTurns in class TurnOrderedint number of "normal" turns this item should
take in a phase.public int getEvenTurns()
getEvenTurns in class TurnOrderedpublic int getOtherTurns()
getOtherTurns in class TurnOrderedpublic int getMultiTurns(IGame game)
getMultiTurns in class TurnOrderedpublic int getSpaceStationTurns()
getSpaceStationTurns in class TurnOrderedpublic int getJumpshipTurns()
getJumpshipTurns in class TurnOrderedpublic int getWarshipTurns()
getWarshipTurns in class TurnOrderedpublic int getDropshipTurns()
getDropshipTurns in class TurnOrderedpublic int getSmallCraftTurns()
getSmallCraftTurns in class TurnOrderedpublic int getAeroTurns()
getAeroTurns in class TurnOrderedpublic boolean equals(java.lang.Object object)
java.lang.Object#equals(Object)
- Overrides:
equals in class java.lang.Object
public boolean hasTAG(IGame game)
public int getTotalInitBonus(boolean bInitiativeCompensationBonus)
public int getInitCompensationBonus(boolean bUseInitCompensation)
public void setInitCompensationBonus(int nNewValue)
public java.util.Vector<java.lang.Integer> getAirborneVTOL()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||