The LoginController is the controller attached to the user until
they've either created a new character or they've logged in and
attached to an old one.
Methods
|
|
displayLogin getControlledObject noteDisconnect noteError processInput processNawsEvent setUser
|
|
displayLogin
|
displayLogin ( self )
Turns on echo and writes a prompt to the user.
This is the default PreLogin text. It turns on the echo
(so the user can see what they're typing) and then prints
Enter a user name . |
|
getControlledObject
|
getControlledObject ( self )
|
|
noteDisconnect
|
noteDisconnect ( self )
??? |
|
noteError
|
noteError ( self, message )
If something fails, this gets kicked up instead of a stack
trace. Players shouldn't see this--it's bad.
arguments:
-
message
- (string) the error message (which we ignore here)
|
|
processInput
|
processInput ( self, input )
The input processor for handling all the user's input.
This is the actual processor that handles all the user's input
until they've satisfied login requirements and have a character
and thereby get a real controller object.
arguments:
-
input
- (string) the incoming input from the player
|
|
processNawsEvent
|
processNawsEvent ( self )
This handles NAWS events--which we ignore. |
|
setUser
|
setUser ( self, connectedUser )
Sets the user for this controller.
Assigns a user to this controller and then prints the PreLogin
text (which comes from world_login_customization object or
the default text here) to the user.
arguments:
-
connectedUser
- (User instance) the connected user
|