Class IssueOrderPreDeploy
java.lang.Object
org.bitsquad.warzone.gameengine.phase.Phase
org.bitsquad.warzone.gameengine.phase.IssueOrderPreDeploy
IssueOrder Pre Deploy Phase Implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleAdvance
(String p_countryNameFrom, String p_targetCountryName, int p_armyUnits) Handler method for advance commandvoid
handleAirlift
(int p_sourceCountryId, int p_targetCountryId, int p_numArmies) Handler method for airlift commandvoid
Handler method for assigncountries commandvoid
handleBlockade
(int p_targetCountryId) Handler method for blockade commandvoid
handleBomb
(int p_countryId) Handler method for bomb commandvoid
Handler method for commit commandvoid
handleDeployArmy
(int p_targetCountryId, int p_armyUnits) Handler method for deploy commandvoid
handleEditContinent
(int[] p_addArray, int[] p_removeIds) Handler method for editcontinent commandvoid
handleEditCountry
(int[] p_addIds, int[] p_removeIds) Handler method for editcountry commandvoid
handleEditMap
(String p_filename) Handler method for loadmap commandvoid
handleEditNeighbor
(int[] p_addIds, int[] p_removeIds) Handler method for editneighbor commandvoid
Handler method for execute ordervoid
handleGamePlayer
(String[] p_addNames, String[] p_removeNames) Handler method for gameplayer commandvoid
handleLoadMap
(String p_filename) Handler method for loadmap commandvoid
handleNegotiate
(int p_targetPlayerId) Handler method for negotiate commandvoid
handleSaveMap
(String p_filename, boolean p_saveAsConquestMap) Handler method for savemap commandvoid
Handler method for validate commandMethods inherited from class org.bitsquad.warzone.gameengine.phase.Phase
printInvalidCommandMessage
-
Constructor Details
-
IssueOrderPreDeploy
Parameterized construtor- Parameters:
p_gameEngine
-
-
-
Method Details
-
handleDeployArmy
Handler method for deploy command- Specified by:
handleDeployArmy
in classPhase
- Parameters:
p_targetCountryId
- Target Country IDp_armyUnits
- Number of army units- Throws:
Exception
-
handleAdvance
Handler method for advance command- Specified by:
handleAdvance
in classPhase
- Parameters:
p_countryNameFrom
- Source Country Namep_targetCountryName
- Target Country Namep_armyUnits
- Number of army units
-
handleBomb
public void handleBomb(int p_countryId) Handler method for bomb command- Specified by:
handleBomb
in classPhase
- Parameters:
p_countryId
- Country ID
-
handleBlockade
public void handleBlockade(int p_targetCountryId) Handler method for blockade command- Specified by:
handleBlockade
in classPhase
- Parameters:
p_targetCountryId
- target Country ID
-
handleAirlift
public void handleAirlift(int p_sourceCountryId, int p_targetCountryId, int p_numArmies) Handler method for airlift command- Specified by:
handleAirlift
in classPhase
- Parameters:
p_sourceCountryId
-p_targetCountryId
-p_numArmies
-
-
handleNegotiate
public void handleNegotiate(int p_targetPlayerId) Handler method for negotiate command- Specified by:
handleNegotiate
in classPhase
- Parameters:
p_targetPlayerId
- Target Player ID
-
handleCommit
public void handleCommit()Handler method for commit command- Specified by:
handleCommit
in classPhase
-
handleLoadMap
Handler method for loadmap command- Specified by:
handleLoadMap
in classPhase
- Parameters:
p_filename
- String filename
-
handleEditMap
Handler method for loadmap command- Specified by:
handleEditMap
in classPhase
- Parameters:
p_filename
- String filename
-
handleSaveMap
Handler method for savemap command- Specified by:
handleSaveMap
in classPhase
- Parameters:
p_filename
- String filename
-
handleValidateMap
public void handleValidateMap()Handler method for validate command- Specified by:
handleValidateMap
in classPhase
-
handleEditContinent
public void handleEditContinent(int[] p_addArray, int[] p_removeIds) Handler method for editcontinent command- Specified by:
handleEditContinent
in classPhase
- Parameters:
p_addArray
- ids and values to addp_removeIds
- ids to remove
-
handleEditCountry
public void handleEditCountry(int[] p_addIds, int[] p_removeIds) Handler method for editcountry command- Specified by:
handleEditCountry
in classPhase
- Parameters:
p_addIds
- ids to addp_removeIds
- ids to remove
-
handleEditNeighbor
public void handleEditNeighbor(int[] p_addIds, int[] p_removeIds) Handler method for editneighbor command- Specified by:
handleEditNeighbor
in classPhase
- Parameters:
p_addIds
-p_removeIds
-
-
handleGamePlayer
Handler method for gameplayer command- Specified by:
handleGamePlayer
in classPhase
- Parameters:
p_addNames
- names to addp_removeNames
- names to remove
-
handleAssignCountries
public void handleAssignCountries()Handler method for assigncountries command- Specified by:
handleAssignCountries
in classPhase
-
handleExecuteOrders
public void handleExecuteOrders()Handler method for execute order- Specified by:
handleExecuteOrders
in classPhase
-