Weewar::User

A user of weewar
Download

Weewar::User Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonathan Rockway
  • Publisher web site:
  • http://search.cpan.org/~jrockway/

Weewar::User Tags


Weewar::User Description

A user of weewar Weewar::User - a user of weewar.SYNOPSIS # 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.METHODSnameReturns the user's username.idReturns the user's id.pointsratingReturns the player's score, usually around 1500.profileReturns the URL of the user's profile page.drawsReturns the number of times the user has ended a game with a draw.victoriesReturns the number of times the user has won.lossesReturns the number of times the user has lost.account_typeReturns the user's account type.ready_to_playReturns a boolean (undef or "true) indicating whether or not the user is "ready to play".games_runningReturns the number of games the user is currently playing.last_loginReturns a DateTime object representing the last time the user logged in.bases_capturedReturns the number of basses the user has captured.credits_spentReturns the number of credits the user has spent.favorite_unitsReturns a list of the user's favorite units.preferred_playersReturns a list of Weewar::User objects representing the user's preferred players.preferred_byReturns a list of Weewar::User objects representing players that prefer this user.gamesReturns a list of Weewar::Game objects representing games that the user has played or is playing.resultIf 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.For example, the result of the user that won will be victory. Requirements: · Perl


Weewar::User Related Software