Jerome Quelin > Games-Risk > Games::Risk::Controller

Download:
Games-Risk-2.1.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Games::Risk::Controller - controller poe session for risk

SYNOPSIS ^

    use Games::Risk::Controller;
    Games::Risk::Controller->spawn;

DESCRIPTION ^

This module implements a poe session, responsible for the state tracking as well as rule enforcement of the game.

PUBLIC METHODS ^

my $id = Games::Risk::Controller->spawn( \%params )

This method will create a POE session responsible for a classical risk game. It will return the poe id of the session newly created.

You can tune the session by passing some arguments as a hash reference. Currently, no params can be tuned.

SEE ALSO ^

Games::Risk.

AUTHOR ^

Jerome Quelin, <jquelin at cpan.org>

COPYRIGHT & LICENSE ^

Copyright (c) 2008 Jerome Quelin, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU GPLv3+.