|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.SPPlayerClass
A player or participant in a game
![]() |
![]() |
| Constructor Summary | |
SPPlayerClass()
|
|
SPPlayerClass(java.lang.String playerID)
Constructs an overloaded instance of SPPlayerClass. |
|
SPPlayerClass(java.lang.String playerID,
boolean internalflag)
Constructs an overloaded instance of SPPlayerClass. |
|
| Method Summary | |
boolean |
addGame(SPGameInterface gameObj)
This method adds a game association to a player object. |
boolean |
clearPlayer()
This function safely removes a player's association with all games - it can only be done if this will not damage any ongoing games. |
boolean |
configurePlayerPID(java.lang.String pid)
This method sets the Player ID for a previously created Player object to associate it with a SecurePlay library. |
java.lang.String[] |
getGameIDList()
Getter function that returns the property: gameIDList |
java.lang.String |
getPlayerID()
This method returns the Player ID for the current player instance |
boolean |
isInternal()
Returns the status of the internalflag |
void |
logerror()
This is a placeholder for future logging support. |
boolean |
removeGame(SPGameInterface gameObj)
This method removes an assocation between a Player and a Game Instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SPPlayerClass()
public SPPlayerClass(java.lang.String playerID,
boolean internalflag)
playerID - String - player idinternalflag - - boolean - internal flagpublic SPPlayerClass(java.lang.String playerID)
playerID - String - player id| Method Detail |
public java.lang.String getPlayerID()
SPPlayerInterface
getPlayerID in interface SPPlayerInterfacepublic boolean isInternal()
SPPlayerInterface
isInternal in interface SPPlayerInterfacepublic boolean addGame(SPGameInterface gameObj)
SPPlayerInterface
addGame in interface SPPlayerInterfacegameObj - SPGameInterface(actual object) - game object handler, the game to be added
public boolean removeGame(SPGameInterface gameObj)
SPPlayerInterface
removeGame in interface SPPlayerInterfacegameObj - SPGameInterface(actual object) - game object handler, the game to be removed
public boolean clearPlayer()
SPPlayerInterface
clearPlayer in interface SPPlayerInterfacepublic void logerror()
public boolean configurePlayerPID(java.lang.String pid)
SPPlayerInterface
configurePlayerPID in interface SPPlayerInterfacepid - String - id of the player to be configured
public java.lang.String[] getGameIDList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||