Weewar::Game - a weewar game
my $game = WeeWar::game->new({ id => 27093 }); $game->name;
Returns the name of the game
Returns the game's id
Returns the game's state, something like "lobby", "running", "finished", etc.
Returns the current turn number if the game is in the running state.
Returns true if the game is still waiting for some players to accept invites. False otherwise.
Returns the number of seconds before an idle player can be kicked.
Returns the game type
Returns the name of the map this game is using
Returns the URL of the current map's description page
Returns the number of credits a base generates each turn
Returns the number of credits each player starts with
If the game is in progress, returns a DateTime object representing the game's start time.
Returns a list of Weewar::Users that are playing this game.
Weewar::User
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.