soc.client
Enum PlayerClientListener.UpdateType

java.lang.Object
  extended by java.lang.Enum<PlayerClientListener.UpdateType>
      extended by soc.client.PlayerClientListener.UpdateType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PlayerClientListener.UpdateType>
Enclosing interface:
PlayerClientListener

public static enum PlayerClientListener.UpdateType
extends java.lang.Enum<PlayerClientListener.UpdateType>

Player data update types for PlayerClientListener.playerElementUpdated(SOCPlayer, UpdateType).


Enum Constant Summary
City
           
Clay
           
Cloth
          Cloth Count update, in _SC_CLVI scenario
DevCards
           
GoldGains
          Total number of resources picked/gained from gold hex reveals in sea board scenarios; used in stats.
Knight
           
LargestArmy
           
LongestRoad
           
Ore
           
Resources
          Update Total Resource count only.
ResourceTotalAndDetails
          Update Total Resource count, and also each box (Clay,Ore,Sheep,Wheat,Wood) if shown.
Road
           
Settlement
           
Sheep
           
Ship
           
SpecialVictoryPoints
           
Unknown
          amount of resources of unknown type (not same as total resource count)
VictoryPoints
           
Warship
          Number of Warships built, in _SC_PIRI scenario
Wheat
           
WonderLevel
          Wonder build level, in _SC_WOND scenario
Wood
           
 
Method Summary
static PlayerClientListener.UpdateType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PlayerClientListener.UpdateType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Clay

public static final PlayerClientListener.UpdateType Clay

Ore

public static final PlayerClientListener.UpdateType Ore

Sheep

public static final PlayerClientListener.UpdateType Sheep

Wheat

public static final PlayerClientListener.UpdateType Wheat

Wood

public static final PlayerClientListener.UpdateType Wood

Unknown

public static final PlayerClientListener.UpdateType Unknown
amount of resources of unknown type (not same as total resource count)


Resources

public static final PlayerClientListener.UpdateType Resources
Update Total Resource count only.


ResourceTotalAndDetails

public static final PlayerClientListener.UpdateType ResourceTotalAndDetails
Update Total Resource count, and also each box (Clay,Ore,Sheep,Wheat,Wood) if shown.


Road

public static final PlayerClientListener.UpdateType Road

Settlement

public static final PlayerClientListener.UpdateType Settlement

City

public static final PlayerClientListener.UpdateType City

Ship

public static final PlayerClientListener.UpdateType Ship

Knight

public static final PlayerClientListener.UpdateType Knight

GoldGains

public static final PlayerClientListener.UpdateType GoldGains
Total number of resources picked/gained from gold hex reveals in sea board scenarios; used in stats. Update not sent if gain is 0.


Warship

public static final PlayerClientListener.UpdateType Warship
Number of Warships built, in _SC_PIRI scenario


Cloth

public static final PlayerClientListener.UpdateType Cloth
Cloth Count update, in _SC_CLVI scenario


WonderLevel

public static final PlayerClientListener.UpdateType WonderLevel
Wonder build level, in _SC_WOND scenario


VictoryPoints

public static final PlayerClientListener.UpdateType VictoryPoints

SpecialVictoryPoints

public static final PlayerClientListener.UpdateType SpecialVictoryPoints

DevCards

public static final PlayerClientListener.UpdateType DevCards

LongestRoad

public static final PlayerClientListener.UpdateType LongestRoad

LargestArmy

public static final PlayerClientListener.UpdateType LargestArmy
Method Detail

values

public static PlayerClientListener.UpdateType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PlayerClientListener.UpdateType c : PlayerClientListener.UpdateType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PlayerClientListener.UpdateType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null