Class IssueOrderPostDeploy

java.lang.Object
org.bitsquad.warzone.gameengine.phase.Phase
org.bitsquad.warzone.gameengine.phase.IssueOrderPostDeploy

public class IssueOrderPostDeploy extends Phase
IssueOrder Post Deploy Phase implementation
  • Constructor Details

    • IssueOrderPostDeploy

      public IssueOrderPostDeploy(GameEngine p_gameEngine)
      Parameterized constructor
      Parameters:
      p_gameEngine -
  • Method Details

    • handleDeployArmy

      public void handleDeployArmy(int p_targetCountryId, int p_armyUnits)
      Handler method for deploy command
      Specified by:
      handleDeployArmy in class Phase
      Parameters:
      p_targetCountryId - Target Country ID
      p_armyUnits - Number of army units
    • handleAdvance

      public void handleAdvance(String p_countryNameFrom, String p_targetCountryName, int p_armyUnits) throws Exception
      Handler method for advance command
      Specified by:
      handleAdvance in class Phase
      Parameters:
      p_countryNameFrom - Source Country Name
      p_targetCountryName - Target Country Name
      p_armyUnits - Number of army units
      Throws:
      Exception
    • handleBomb

      public void handleBomb(int p_targetCountryId) throws Exception
      Handler method for bomb command
      Specified by:
      handleBomb in class Phase
      Parameters:
      p_targetCountryId - Country ID
      Throws:
      Exception
    • handleBlockade

      public void handleBlockade(int p_targetCountryId) throws Exception
      Handler method for bloackade command
      Specified by:
      handleBlockade in class Phase
      Parameters:
      p_targetCountryId - target Country ID
      Throws:
      Exception
    • handleAirlift

      public void handleAirlift(int p_sourceCountryId, int p_targetCountryId, int p_numArmies) throws Exception
      Handler method for airlift command
      Specified by:
      handleAirlift in class Phase
      Parameters:
      p_sourceCountryId - Source Country ID
      p_targetCountryId - Target Country ID
      p_numArmies -
      Throws:
      Exception
    • handleNegotiate

      public void handleNegotiate(int p_targetPlayerId) throws Exception
      Handler method for negotiate command
      Specified by:
      handleNegotiate in class Phase
      Parameters:
      p_targetPlayerId - Target Player ID
      Throws:
      Exception
    • handleCommit

      public void handleCommit()
      Handler method for commit command
      Specified by:
      handleCommit in class Phase
    • handleLoadMap

      public void handleLoadMap(String p_filename)
      Handler method for loadmap command
      Specified by:
      handleLoadMap in class Phase
      Parameters:
      p_filename - String filename
    • handleEditMap

      public void handleEditMap(String p_filename)
      Handler method for loadmap command
      Specified by:
      handleEditMap in class Phase
      Parameters:
      p_filename - String filename
    • handleSaveMap

      public void handleSaveMap(String p_filename, boolean p_saveAsConquestMap)
      Handler method for savemap command
      Specified by:
      handleSaveMap in class Phase
      Parameters:
      p_filename - String filename
    • handleValidateMap

      public void handleValidateMap()
      Handler method for validate command
      Specified by:
      handleValidateMap in class Phase
    • handleEditContinent

      public void handleEditContinent(int[] p_addArray, int[] p_removeIds)
      Handler method for editcontinent command
      Specified by:
      handleEditContinent in class Phase
      Parameters:
      p_addArray - ids and values to add
      p_removeIds - ids to remove
    • handleEditCountry

      public void handleEditCountry(int[] p_addIds, int[] p_removeIds)
      Handler method for editcountry command
      Specified by:
      handleEditCountry in class Phase
      Parameters:
      p_addIds - ids to add
      p_removeIds - ids to remove
    • handleEditNeighbor

      public void handleEditNeighbor(int[] p_addIds, int[] p_removeIds)
      Handler method for editneighbor command
      Specified by:
      handleEditNeighbor in class Phase
      Parameters:
      p_addIds -
      p_removeIds -
    • handleGamePlayer

      public void handleGamePlayer(String[] p_addNames, String[] p_removeNames)
      Handler method for gameplayer command
      Specified by:
      handleGamePlayer in class Phase
      Parameters:
      p_addNames - names to add
      p_removeNames - names to remove
    • handleAssignCountries

      public void handleAssignCountries()
      Handler method for assigncountries command
      Specified by:
      handleAssignCountries in class Phase
    • handleExecuteOrders

      public void handleExecuteOrders()
      Handler method for execute order
      Specified by:
      handleExecuteOrders in class Phase