Games::Lacuna::Client::Empire - The empire module
use Games::Lacuna::Client; use Games::Lacuna::Client::Empire; my $client = Games::Lacuna::Client->new(...); my $empire = $client->empire; my $status = $empire->get_status;
A subclass of Games::Lacuna::Client::Module.
Creates an object locally, does not connect to the server.
Games::Lacuna::Client::Empire->new(client => $client, @parameters);
The $client is a Games::Lacuna::Client object.
Games::Lacuna::Client
Usually, you can just use the empire factory method of the client object instead:
empire
my $empire = $client->empire(@parameters); # client set automatically
Optional parameters:
id => "The id of the empire"
Steffen Mueller, <smueller@cpan.org>
Copyright (C) 2010 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Games::Lacuna::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Lacuna::Client
CPAN shell
perl -MCPAN -e shell install Games::Lacuna::Client
For more information on module installation, please visit the detailed CPAN module installation guide.