The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Games::Lacuna::Client::Empire - The empire module

SYNOPSIS

  use Games::Lacuna::Client;
  use Games::Lacuna::Client::Empire;
  
  my $client = Games::Lacuna::Client->new(...);
  my $empire = $client->empire;
  
  my $status = $empire->get_status;

DESCRIPTION

A subclass of Games::Lacuna::Client::Module.

new

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.

Usually, you can just use the empire factory method of the client object instead:

  my $empire = $client->empire(@parameters); # client set automatically

Optional parameters:

  id => "The id of the empire"

AUTHOR

Steffen Mueller, <smueller@cpan.org>

COPYRIGHT AND LICENSE

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.