Class GameFinished

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

public class GameFinished extends Phase
Represents the GameFinished phase
  • Constructor Details

    • GameFinished

      public GameFinished(GameEngine p_gameEngine)
      Parameterized Constructor
      Parameters:
      p_gameEngine - GameEngine
  • Method Details

    • handleLoadMap

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

      public void handleEditMap(String p_filename) throws IOException
      Handler for handleEditMap
      Specified by:
      handleEditMap in class Phase
      Parameters:
      p_filename - String filename
      Throws:
      IOException
    • handleSaveMap

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

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

      public void handleEditContinent(int[] p_addArray, int[] p_removeIds)
      Handler 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 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 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 for gameplayer command
      Specified by:
      handleGamePlayer in class Phase
      Parameters:
      p_addNames - names to add
      p_removeNames - names to remove
    • handleAssignCountries

      public void handleAssignCountries() throws Exception
      Handler for assigncountries command
      Specified by:
      handleAssignCountries in class Phase
      Throws:
      Exception
    • handleDeployArmy

      public void handleDeployArmy(int p_targetCountryId, int p_armyUnits) throws Exception
      Handler for deploy command
      Specified by:
      handleDeployArmy in class Phase
      Parameters:
      p_targetCountryId - Target Country ID
      p_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 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_countryId) throws Exception
      Handler for bomb command
      Specified by:
      handleBomb in class Phase
      Parameters:
      p_countryId - Country ID
      Throws:
      Exception
    • handleBlockade

      public void handleBlockade(int p_targetCountryId) throws Exception
      Handler for blockade 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 for airlift command
      Specified by:
      handleAirlift in class Phase
      Parameters:
      p_sourceCountryId - Source Country Id
      p_targetCountryId - Target Country Id
      p_numArmies - Number of armies
      Throws:
      Exception
    • handleNegotiate

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

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

      public void handleExecuteOrders()
      Handler for executeorder
      Specified by:
      handleExecuteOrders in class Phase