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 TypeMethodDescriptionvoidhandleAdvance(String p_countryNameFrom, String p_targetCountryName, int p_armyUnits) Handler for advance commandvoidhandleAirlift(int p_sourceCountryId, int p_targetCountryId, int p_numArmies) Handler for airlift commandvoidHandler for assigncountries commandvoidhandleBlockade(int p_targetCountryId) Handler for blockade commandvoidhandleBomb(int p_countryId) Handler for bomb commandvoidHandler for commit commandvoidhandleDeployArmy(int p_targetCountryId, int p_armyUnits) Handler for deploy commandvoidhandleEditContinent(int[] p_addArray, int[] p_removeIds) Handler for editcontinent commandvoidhandleEditCountry(int[] p_addIds, int[] p_removeIds) Handler for editcountry commandvoidhandleEditMap(String p_filename) Handler for handleEditMapvoidhandleEditNeighbor(int[] p_addIds, int[] p_removeIds) Handler for editneighbor commandvoidHandler for executeordervoidhandleGamePlayer(String[] p_addNames, String[] p_removeNames) Handler for gameplayer commandvoidhandleLoadMap(String p_filename) Handler for loadmapvoidhandleNegotiate(int p_targetPlayerId) Handler for negotiate commandvoidhandleSaveMap(String p_filename, boolean p_saveAsConquestMap) Handler for savemap commandvoidHandler 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:
handleLoadMapin classPhase- Parameters:
p_filename- String filename- Throws:
Exception
-
handleEditMap
Handler for handleEditMap- Specified by:
handleEditMapin classPhase- Parameters:
p_filename- String filename- Throws:
IOException
-
handleSaveMap
Handler for savemap command- Specified by:
handleSaveMapin classPhase- Parameters:
p_filename- String filenamep_saveAsConquestMap- Boolean- Throws:
Exception
-
handleValidateMap
public void handleValidateMap()Handler for validatemap command- Specified by:
handleValidateMapin classPhase
-
handleEditContinent
public void handleEditContinent(int[] p_addArray, int[] p_removeIds) Handler for editcontinent command- Specified by:
handleEditContinentin 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:
handleEditCountryin 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:
handleEditNeighborin classPhase- Parameters:
p_addIds-p_removeIds-
-
handleGamePlayer
Handler for gameplayer command- Specified by:
handleGamePlayerin classPhase- Parameters:
p_addNames- names to addp_removeNames- names to remove
-
handleAssignCountries
Handler for assigncountries command- Specified by:
handleAssignCountriesin classPhase- Throws:
Exception
-
handleDeployArmy
Handler for deploy command- Specified by:
handleDeployArmyin 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:
handleAdvancein 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:
handleBombin classPhase- Parameters:
p_countryId- Country ID- Throws:
Exception
-
handleBlockade
Handler for blockade command- Specified by:
handleBlockadein 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:
handleAirliftin classPhase- Parameters:
p_sourceCountryId- Source Country Idp_targetCountryId- Target Country Idp_numArmies- Number of armies- Throws:
Exception
-
handleNegotiate
Handler for negotiate command- Specified by:
handleNegotiatein classPhase- Parameters:
p_targetPlayerId- Target Player ID- Throws:
Exception
-
handleCommit
public void handleCommit()Handler for commit command- Specified by:
handleCommitin classPhase
-
handleExecuteOrders
public void handleExecuteOrders()Handler for executeorder- Specified by:
handleExecuteOrdersin classPhase
-