ggz.common
Class PlayerType

java.lang.Object
  extended by ggz.common.PlayerType

public class PlayerType
extends java.lang.Object

A player type. The server will tell the client the type of each player.


Field Summary
static PlayerType GGZ_PLAYER_ADMIN
          An admin player is registered and has some special permissions.
static PlayerType GGZ_PLAYER_BOT
          A bot is a special type of player.
static PlayerType GGZ_PLAYER_GUEST
          A guest player is not registered.
static PlayerType GGZ_PLAYER_HOST
          A host player is registered and has some special permissions.
static PlayerType GGZ_PLAYER_NORMAL
          A normal player is registered but has no special permission.
static PlayerType GGZ_PLAYER_UNKNOWN
          This is an unknown type of player.
static java.util.ArrayList values
           
 
Method Summary
 int ordinal()
           
 java.lang.String toString()
           
static PlayerType valueOf(java.lang.String type_str)
           
static PlayerType[] values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

public static final java.util.ArrayList values

GGZ_PLAYER_NORMAL

public static final PlayerType GGZ_PLAYER_NORMAL
A normal player is registered but has no special permission.


GGZ_PLAYER_GUEST

public static final PlayerType GGZ_PLAYER_GUEST
A guest player is not registered.


GGZ_PLAYER_ADMIN

public static final PlayerType GGZ_PLAYER_ADMIN
An admin player is registered and has some special permissions.


GGZ_PLAYER_HOST

public static final PlayerType GGZ_PLAYER_HOST
A host player is registered and has some special permissions.


GGZ_PLAYER_BOT

public static final PlayerType GGZ_PLAYER_BOT
A bot is a special type of player.


GGZ_PLAYER_UNKNOWN

public static final PlayerType GGZ_PLAYER_UNKNOWN
This is an unknown type of player.

Method Detail

ordinal

public int ordinal()

values

public static PlayerType[] values()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

valueOf

public static PlayerType valueOf(java.lang.String type_str)