Ricardo Signes > Games-Dice-0.999_02 > Games::Die::Result

Download:
Games-Dice-0.999_02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.999_01   Source  

NAME ^

Games::Die::Result - what you get when you roll one die

VERSION ^

version 0.999_01

 $Id: Result.pm 1148 2006-12-08 13:34:36Z rjbs $

SYNOPSIS ^

 my $dic = Games::Die->new(6);
 my $result = $die->roll;
 
 say "You rolled: ",  $result->value;

DESCRIPTION ^

Games::Die::Result objects are returned when the roll method is called on a Game::Die object.

METHODS ^

new

  my $result = Games::Die::Result->new(\%arg);

This method creates a new result. You shouldn't need to use it outside of Games::Die classes.

Valid arguments are:

  value - the value shown on the die

If no other arguments are given, the value of value may be passed as a plain scalar in place of %arg.

value

This method returns the value of the result.

AUTHOR ^

Ricardo SIGNES, <rjbs@cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-games-dice@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT ^

Copyright 2005, Ricardo SIGNES.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.