Interface IServer

All Known Implementing Classes:
Server, SocketClientThread

public interface IServer
IServer is an interface for the client-accessible parts of Server.
Author:
David Ripton
  • Field Details

  • Method Details

    • leaveCarryMode

      void leaveCarryMode()
    • doneWithBattleMoves

      void doneWithBattleMoves()
    • doneWithStrikes

      void doneWithStrikes()
    • acquireAngel

      void acquireAngel(Legion legion, CreatureType angelType)
    • doSummon

      void doSummon(Summoning event)
      Handles a summon event
      Parameters:
      event - The summon event or null if summoning is not wanted.
    • doRecruit

      void doRecruit(Recruitment event)
    • engage

      void engage(MasterHex hex)
    • concede

      void concede(Legion legion)
    • doNotConcede

      void doNotConcede(Legion legion)
    • flee

      void flee(Legion legion)
    • doNotFlee

      void doNotFlee(Legion legion)
    • makeProposal

      void makeProposal(String proposalString)
    • fight

      void fight(MasterHex hex)
    • doBattleMove

      void doBattleMove(int tag, BattleHex hex)
    • strike

      void strike(int tag, BattleHex hex)
    • applyCarries

      void applyCarries(BattleHex hex)
    • undoBattleMove

      void undoBattleMove(BattleHex hex)
    • assignStrikePenalty

      void assignStrikePenalty(String prompt)
    • mulligan

      void mulligan()
    • undoSplit

      void undoSplit(Legion splitoff)
    • undoMove

      void undoMove(Legion legion)
    • undoRecruit

      void undoRecruit(Legion legion)
    • doneWithSplits

      void doneWithSplits()
    • doneWithMoves

      void doneWithMoves()
    • doneWithEngagements

      void doneWithEngagements()
    • doneWithRecruits

      void doneWithRecruits()
    • withdrawFromGame

      void withdrawFromGame()
    • sendDisconnect

      void sendDisconnect()
    • stopGame

      void stopGame()
    • doSplit

      void doSplit(Legion parent, String childMarker, List<CreatureType> creaturesToSplit)
      Executes a split of certain creatures from a legion.
      Parameters:
      parent - The legion to split the creatures out of.
      childMarker - A marker for the new legion.
      creaturesToSplit - The creatures to split out.
    • doMove

      void doMove(Legion legion, MasterHex hex, EntrySide entrySide, boolean teleport, CreatureType teleportingLord)
    • assignColor

      void assignColor(PlayerColor color)
    • assignFirstMarker

      void assignFirstMarker(String markerId)
    • newGame

      void newGame()
    • loadGame

      void loadGame(String filename)
    • saveGame

      void saveGame(String filename)
    • checkServerConnection

      void checkServerConnection()
    • clientConfirmedCatchup

      void clientConfirmedCatchup()
    • joinGame

      void joinGame(String playerName)
    • watchGame

      void watchGame()