|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
lthc.casino.UserImpl
lthc.casino.Player
This class is an extension of User
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
Player()
this is the main constructor |
|
Player(java.lang.String name,
java.lang.String pass,
int rank,
int money,
Casino casino)
Player constructor |
Method Summary | |
Card |
addCard(Card c)
Adds the card to the players card list |
int |
getBet()
Gets the bet |
java.util.ArrayList |
getCards()
Gets the ArrayList of cards |
void |
resetCards()
Resets the list of cards done when game is over |
void |
setBet(int bet)
Sets the bet |
Methods inherited from class lthc.casino.UserImpl |
getMoney, getName, getPassword, getRank, getRankNumber, setMoney, setRank |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Player() throws java.rmi.RemoteException
public Player(java.lang.String name, java.lang.String pass, int rank, int money, Casino casino) throws java.rmi.RemoteException
name
- String containing namepass
- String containing passrank
- Int of rankcasino
- The casino object
java.rmi.RemoteException
Method Detail |
public void setBet(int bet) throws java.rmi.RemoteException
bet
- The amount to set the bet to
java.rmi.RemoteException
public int getBet() throws java.rmi.RemoteException
java.rmi.RemoteException
public Card addCard(Card c)
c
- the card to add
public void resetCards()
public java.util.ArrayList getCards()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |