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
    • Method Detail

      • leaveCarryMode

        void leaveCarryMode()
      • doneWithBattleMoves

        void doneWithBattleMoves()
      • doneWithStrikes

        void doneWithStrikes()
      • doSummon

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

        void concede​(Legion legion)
      • doNotConcede

        void doNotConcede​(Legion legion)
      • flee

        void flee​(Legion legion)
      • doNotFlee

        void doNotFlee​(Legion legion)
      • makeProposal

        void makeProposal​(java.lang.String proposalString)
      • 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​(java.lang.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,
                     java.lang.String childMarker,
                     java.util.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.
      • assignFirstMarker

        void assignFirstMarker​(java.lang.String markerId)
      • newGame

        void newGame()
      • loadGame

        void loadGame​(java.lang.String filename)
      • saveGame

        void saveGame​(java.lang.String filename)
      • checkServerConnection

        void checkServerConnection()
      • clientConfirmedCatchup

        void clientConfirmedCatchup()
      • joinGame

        void joinGame​(java.lang.String playerName)
      • watchGame

        void watchGame()