|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITripleaPlayer
Interface the TriplePlayer presents to Delegates through IRemoteMessenger
| Method Summary | |
|---|---|
void |
confirmEnemyCasualties(GUID battleId,
java.lang.String message,
PlayerID hitPlayer)
Allows the user to pause and confirm enemy casualties |
boolean |
confirmMoveHariKari()
The attempted move will kill some units |
boolean |
confirmMoveInFaceOfAA(java.util.Collection<Territory> aaFiringTerritories)
The attempted move will incur aa fire, confirm that you still want to move |
boolean |
confirmMoveKamikaze()
The attempted move will kill some air units |
void |
confirmOwnCasualties(GUID battleId,
java.lang.String message)
|
PlayerID |
getID()
|
java.util.Collection<Unit> |
getNumberOfFightersToMoveToNewCarrier(java.util.Collection<Unit> fightersThatCanBeMoved,
Territory from)
get the fighters to move to a newly produced carrier |
void |
reportError(java.lang.String error)
Report an error to the user. |
void |
reportMessage(java.lang.String message)
report a message to the user |
Territory |
retreatQuery(GUID battleID,
boolean submerge,
java.util.Collection<Territory> possibleTerritories,
java.lang.String message)
Ask the player if he wishes to retreat. |
boolean |
selectAttackSubs(Territory unitTerritory)
Ask if the player wants to attack lone subs |
boolean |
selectAttackTransports(Territory unitTerritory)
Ask if the player wants to attack lone transports |
boolean |
selectAttackUnits(Territory unitTerritory)
Ask if the player wants to attack units |
Territory |
selectBombardingTerritory(Unit unit,
Territory unitTerritory,
java.util.Collection<Territory> territories,
boolean noneAvailable)
Select the territory to bombard with the bombarding capable unit (eg battleship) |
CasualtyDetails |
selectCasualties(java.util.Collection<Unit> selectFrom,
java.util.Map<Unit,java.util.Collection<Unit>> dependents,
int count,
java.lang.String message,
DiceRoll dice,
PlayerID hit,
java.util.List<Unit> defaultCasualties,
GUID battleID)
Select casualties |
int[] |
selectFixedDice(int numDice,
int hitAt,
boolean hitOnlyIfEquals,
java.lang.String title)
Select a fixed dice roll |
boolean |
selectShoreBombard(Territory unitTerritory)
Ask if the player wants to shore bombard |
Territory |
selectTerritoryForAirToLand(java.util.Collection<Territory> candidates)
Some carriers were lost while defending. |
boolean |
shouldBomberBomb(Territory territory)
One or more bombers have just moved into a territory where a strategic bombing raid can be conducted, should the bomber bomb? |
Territory |
whereShouldRocketsAttack(java.util.Collection<Territory> candidates,
Territory from)
Choose where my rockets should fire |
| Method Detail |
|---|
CasualtyDetails selectCasualties(java.util.Collection<Unit> selectFrom,
java.util.Map<Unit,java.util.Collection<Unit>> dependents,
int count,
java.lang.String message,
DiceRoll dice,
PlayerID hit,
java.util.List<Unit> defaultCasualties,
GUID battleID)
selectFrom - - the units to select casualties fromdependents - - dependents of the units to select fromcount - - the number of casualties to selectmessage - - ui message to displayhit - - the player hitdice - - the dice rolled for the casualtiesdefaultCasualties - - default casualties as selected by the gamebattleID - - the battle we are fighting in, may be null if this is an aa casualty selection during a move
int[] selectFixedDice(int numDice,
int hitAt,
boolean hitOnlyIfEquals,
java.lang.String title)
numDice - - the number of dice rollshitAt - - the lowest roll that constitutes a hit (0 for none)hitOnlyIfEquals - - whether to count rolls greater than hitAt as hitstitle - - the title for the DiceChooser
Territory selectBombardingTerritory(Unit unit,
Territory unitTerritory,
java.util.Collection<Territory> territories,
boolean noneAvailable)
unit - - the bombarding unitunitTerritory - - where the bombarding unit isterritories - - territories where the unit can bombardnoneAvailable -
boolean selectAttackSubs(Territory unitTerritory)
unitTerritory - - where the potential battle isboolean selectAttackTransports(Territory unitTerritory)
unitTerritory - - where the potential battle isboolean selectAttackUnits(Territory unitTerritory)
unitTerritory - - where the potential battle isboolean selectShoreBombard(Territory unitTerritory)
unitTerritory - - where the potential battle isvoid reportError(java.lang.String error)
report - that an error occurredvoid reportMessage(java.lang.String message)
message - boolean shouldBomberBomb(Territory territory)
Territory whereShouldRocketsAttack(java.util.Collection<Territory> candidates,
Territory from)
candidates - - a collection of Territories, the possible territories to attackfrom - - where the rockets are launched from, null for WW2V1 rules
java.util.Collection<Unit> getNumberOfFightersToMoveToNewCarrier(java.util.Collection<Unit> fightersThatCanBeMoved,
Territory from)
fightersThatCanBeMoved - - the fighters that can be movedfrom - - the territory containing the factory
Territory selectTerritoryForAirToLand(java.util.Collection<Territory> candidates)
candidates - - a list of territories - these are the places where air units can land
boolean confirmMoveInFaceOfAA(java.util.Collection<Territory> aaFiringTerritories)
aaFiringTerritories - - the territories where aa will fireboolean confirmMoveKamikaze()
boolean confirmMoveHariKari()
Territory retreatQuery(GUID battleID,
boolean submerge,
java.util.Collection<Territory> possibleTerritories,
java.lang.String message)
battleID - - the battlesubmerge - - is submerging possiblepossibleTerritories - - where the player can retreat tomessage - - user displayable message
void confirmEnemyCasualties(GUID battleId,
java.lang.String message,
PlayerID hitPlayer)
battleId - message -
void confirmOwnCasualties(GUID battleId,
java.lang.String message)
PlayerID getID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||