Class PlayerClientSide


  • public final class PlayerClientSide
    extends Player
    This class holds client-side version of a player.
    Author:
    David Ripton
    • Constructor Detail

      • PlayerClientSide

        PlayerClientSide​(Game game,
                         java.lang.String playerName,
                         int number)
        Two-stage initialization at the moment, only some data here, the rest comes through update(String). TODO: the object should be properly initialized in the constructor
    • Method Detail

      • update

        void update​(java.lang.String infoString)
        Takes a colon-separated string of form dead:name:tower:color:elim:legions:markers:creatures:value:titan:score TODO this is part of the network protocol and should be somewhere in there
      • initPredictSplits

        public void initPredictSplits​(Legion rootLegion,
                                      java.util.List<CreatureType> creatures)