|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.client.User
public class User
Class User is used in lobby to keep information about user. Keeps information about user whether he is logged in or out. It can be used to restrict features in LobbyView.
Constructor Summary | |
---|---|
User()
|
Method Summary | |
---|---|
double |
getBalance()
Gets the balance of the user. |
java.lang.String |
getName()
Returns the name of the account. |
AccountType |
getType()
Returns the type of this users account. |
boolean |
isLogged()
Checks if user is logged in or out. |
void |
setLogged(java.lang.String name,
double balance,
AccountType type)
Sets user logged in. |
void |
setLoggedOut()
Sets user logged out. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public User()
Method Detail |
---|
public void setLogged(java.lang.String name, double balance, AccountType type)
name
- Account name.balance
- Balance of account.type
- Type of account. See AccountTypes enumeration for details.public void setLoggedOut()
public AccountType getType()
public boolean isLogged()
public java.lang.String getName()
public double getBalance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |