Class GameFinished
java.lang.Object
org.bitsquad.warzone.gameengine.phase.Phase
org.bitsquad.warzone.gameengine.phase.GameFinished
Represents the GameFinished phase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleAdvance
(String p_countryNameFrom, String p_targetCountryName, int p_armyUnits) Handler for advance commandvoid
handleAirlift
(int p_sourceCountryId, int p_targetCountryId, int p_numArmies) Handler for airlift commandvoid
Handler for assigncountries commandvoid
handleBlockade
(int p_targetCountryId) Handler for blockade commandvoid
handleBomb
(int p_countryId) Handler for bomb commandvoid
Handler for commit commandvoid
handleDeployArmy
(int p_targetCountryId, int p_armyUnits) Handler for deploy commandvoid
handleEditContinent
(int[] p_addArray, int[] p_removeIds) Handler for editcontinent commandvoid
handleEditCountry
(int[] p_addIds, int[] p_removeIds) Handler for editcountry commandvoid
handleEditMap
(String p_filename) Handler for handleEditMapvoid
handleEditNeighbor
(int[] p_addIds, int[] p_removeIds) Handler for editneighbor commandvoid
Handler for executeordervoid
handleGamePlayer
(String[] p_addNames, String[] p_removeNames) Handler for gameplayer commandvoid
handleLoadMap
(String p_filename) Handler for loadmapvoid
handleNegotiate
(int p_targetPlayerId) Handler for negotiate commandvoid
handleSaveMap
(String p_filename, boolean p_saveAsConquestMap) Handler for savemap commandvoid
Handler for validatemap commandMethods inherited from class org.bitsquad.warzone.gameengine.phase.Phase
printInvalidCommandMessage
-
Constructor Details
-
GameFinished
Parameterized Constructor- Parameters:
p_gameEngine
- GameEngine
-
-
Method Details
-
handleLoadMap
Handler for loadmap- Specified by:
handleLoadMap
in classPhase
- Parameters:
p_filename
- String filename- Throws:
Exception
-
handleEditMap
Handler for handleEditMap- Specified by:
handleEditMap
in classPhase
- Parameters:
p_filename
- String filename- Throws:
IOException
-
handleSaveMap
Handler for savemap command- Specified by:
handleSaveMap
in classPhase
- Parameters:
p_filename
- String filenamep_saveAsConquestMap
- Boolean- Throws:
Exception
-
handleValidateMap
public void handleValidateMap()Handler for validatemap command- Specified by:
handleValidateMap
in classPhase
-
handleEditContinent
public void handleEditContinent(int[] p_addArray, int[] p_removeIds) Handler 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 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 for editneighbor command- Specified by:
handleEditNeighbor
in classPhase
- Parameters:
p_addIds
-p_removeIds
-
-
handleGamePlayer
Handler for gameplayer command- Specified by:
handleGamePlayer
in classPhase
- Parameters:
p_addNames
- names to addp_removeNames
- names to remove
-
handleAssignCountries
Handler for assigncountries command- Specified by:
handleAssignCountries
in classPhase
- Throws:
Exception
-
handleDeployArmy
Handler for deploy command- Specified by:
handleDeployArmy
in classPhase
- Parameters:
p_targetCountryId
- Target Country IDp_armyUnits
- Number of army units- Throws:
Exception
-
handleAdvance
public void handleAdvance(String p_countryNameFrom, String p_targetCountryName, int p_armyUnits) throws Exception Handler for advance command- Specified by:
handleAdvance
in classPhase
- Parameters:
p_countryNameFrom
- Source Country Namep_targetCountryName
- Target Country Namep_armyUnits
- Number of army units- Throws:
Exception
-
handleBomb
Handler for bomb command- Specified by:
handleBomb
in classPhase
- Parameters:
p_countryId
- Country ID- Throws:
Exception
-
handleBlockade
Handler for blockade command- Specified by:
handleBlockade
in classPhase
- Parameters:
p_targetCountryId
- target Country ID- Throws:
Exception
-
handleAirlift
public void handleAirlift(int p_sourceCountryId, int p_targetCountryId, int p_numArmies) throws Exception Handler for airlift command- Specified by:
handleAirlift
in classPhase
- Parameters:
p_sourceCountryId
- Source Country Idp_targetCountryId
- Target Country Idp_numArmies
- Number of armies- Throws:
Exception
-
handleNegotiate
Handler for negotiate command- Specified by:
handleNegotiate
in classPhase
- Parameters:
p_targetPlayerId
- Target Player ID- Throws:
Exception
-
handleCommit
public void handleCommit()Handler for commit command- Specified by:
handleCommit
in classPhase
-
handleExecuteOrders
public void handleExecuteOrders()Handler for executeorder- Specified by:
handleExecuteOrders
in classPhase
-