org.newdawn.asd.isoclient
Class User

java.lang.Object
  extended byorg.newdawn.asd.isoclient.User

public class User
extends java.lang.Object

Description of user connected to the game


Constructor Summary
User(java.lang.String name)
          Create a new user
 
Method Summary
 Actor getActor()
          Get the actor representing this player
 boolean getLagged()
          Check if this user is lagging
 java.lang.String getName()
          Get the name of this user
 boolean hasRequestedPause()
          Check if this user has requested a pause in game
 void setActor(Actor actor)
          Set the actor representing this player
 void setLagged(boolean lagged)
          Indicate whether this use is lagged
 void setRequestedPause(boolean pauseRequested)
          Indicate whether htis user has requested a pause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(java.lang.String name)
Create a new user

Parameters:
name - The name of the user
Method Detail

setLagged

public void setLagged(boolean lagged)
Indicate whether this use is lagged

Parameters:
lagged - True if this user is lagged

getLagged

public boolean getLagged()
Check if this user is lagging

Returns:
True if the user is lagged

hasRequestedPause

public boolean hasRequestedPause()
Check if this user has requested a pause in game

Returns:
True if the user has requested a pause in game

setRequestedPause

public void setRequestedPause(boolean pauseRequested)
Indicate whether htis user has requested a pause

Parameters:
pauseRequested - True if this user has requested a pause

setActor

public void setActor(Actor actor)
Set the actor representing this player

Parameters:
actor - The actor representing this user

getActor

public Actor getActor()
Get the actor representing this player

Returns:
The actor representing this user

getName

public java.lang.String getName()
Get the name of this user

Returns:
The name of this user