Weewar::User - a user of weewar
# make a user my $user = WeeWar::User->new({ name => 'jrockway' }); # then get their data my $points = $user->points; my @units = $user->favorite_units my @games = $user->games; # etc.
Returns the user's username.
Returns the user's id.
Returns the player's score, usually around 1500.
Returns the URL of the user's profile page.
Returns the number of times the user has ended a game with a draw.
Returns the number of times the user has won.
Returns the number of times the user has lost.
Returns the user's account type.
Returns a boolean (undef or "true) indicating whether or not the user is "ready to play".
Returns the number of games the user is currently playing.
Returns a DateTime object representing the last time the user logged in.
Returns the number of basses the user has captured.
Returns the number of credits the user has spent.
Returns a list of the user's favorite units.
Returns a list of Weewar::User objects representing the user's preferred players.
Weewar::User
Returns a list of Weewar::User objects representing players that prefer this user.
Returns a list of Weewar::Game objects representing games that the user has played or is playing.
Weewar::Game
If this User object was returned from Weewar::Game->players and the game is finished, this field will contain the win/loss status of the game.
Weewar::Game->players
For example, the result of the user that won will be victory.
result
victory
If you call this method, you will die.
See Weewar for the main docs.
To install Weewar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weewar
CPAN shell
perl -MCPAN -e shell install Weewar
For more information on module installation, please visit the detailed CPAN module installation guide.