universe.server.database
Class PlayerBase

java.lang.Object
  |
  +--universe.common.database.DBItem
        |
        +--universe.server.database.PlayerBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PlayerComputer, PlayerHuman

public abstract class PlayerBase
extends DBItem

See Also:
Serialized Form

Field Summary
private  CivID civID
           
private static PlayerID currentID
           
private  PlayerID ID
           
private  java.lang.String name
           
 boolean turnSubmitted
          Has this player submitted its turn.
 
Constructor Summary
protected PlayerBase()
           
 
Method Summary
 PlayerID getID()
          This loads a script into the script object
 Index getIndex()
           
 java.lang.String getName()
          This method returns the civilization which the player is directing.
 CivID getOwner()
          This method returns the civilization which is being directed by the player.
(package private)  void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentID

private static PlayerID currentID

ID

private PlayerID ID

name

private java.lang.String name

civID

private CivID civID

turnSubmitted

public boolean turnSubmitted
Has this player submitted its turn.

Constructor Detail

PlayerBase

protected PlayerBase()
Method Detail

getID

public PlayerID getID()
This loads a script into the script object


getIndex

public Index getIndex()
Specified by:
getIndex in class DBItem
See Also:
in the subclasses for a typed version.

getOwner

public CivID getOwner()
This method returns the civilization which is being directed by the player.


getName

public java.lang.String getName()
This method returns the civilization which the player is directing.

Specified by:
getName in class DBItem

setName

void setName(java.lang.String name)


Copyright © 2001 Universe Dev Team All Rights Reserved.