Package net.sf.colossus.client
Class PlayerClientSide
java.lang.Object
net.sf.colossus.game.Player
net.sf.colossus.client.PlayerClientSide
This class holds client-side version of a player.
- Author:
- David Ripton
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlayerClientSide
(Game game, String playerName, int number) Two-stage initialization at the moment, only some data here, the rest comes throughupdate(String)
. -
Method Summary
Modifier and TypeMethodDescriptiongetLegionByMarkerId
(String markerId) TODO should be List, but currently subclasses still use more specific types TODO should be unmodifiable, but at least PlayerServerSide.die(Player)
still removes itemsvoid
initPredictSplits
(Legion rootLegion, List<CreatureType> creatures) (package private) void
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 thereMethods inherited from class net.sf.colossus.game.Player
addLegion, addMarkerAvailable, addPlayerElim, canTitanTeleport, clearMarkersAvailable, getAngelBasename, getColor, getDeadBeforeSave, getFirstAvailableMarker, getGame, getMarkersAvailable, getMulligansLeft, getName, getNumber, getNumCreatures, getNumLegions, getNumMarkersAvailable, getPlayersElim, getScore, getShortColor, getStartingTower, getTitanBasename, getTitanLegion, getTitanPower, getTotalPointValue, getType, hasLegion, hasMoved, hasTeleported, isAI, isDead, isHuman, isLocalHuman, isMarkerAvailable, isNetwork, isNone, removeAllLegions, removeLegion, removeMarkerAvailable, selectMarkerId, setColor, setDead, setDeadBeforeSave, setMulligansLeft, setName, setPlayersElim, setScore, setStartingTower, setType, toString
-
Field Details
-
predictSplits
-
-
Constructor Details
-
PlayerClientSide
Two-stage initialization at the moment, only some data here, the rest comes throughupdate(String)
. TODO: the object should be properly initialized in the constructor
-
-
Method Details
-
getLegions
Description copied from class:Player
TODO should be List, but currently subclasses still use more specific types TODO should be unmodifiable, but at least PlayerServerSide.die(Player)
still removes items- Overrides:
getLegions
in classPlayer
-
update
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 -
getPredictSplits
-
initPredictSplits
-
getLegionByMarkerId
- Overrides:
getLegionByMarkerId
in classPlayer
-