| 1 | package VANAMBURG::StackCard; | ||
| 2 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | extends 'VANAMBURG::Card'; | |
| 4 | |||
| 5 | =head1 VANAMBURG::StackCard | ||
| 6 | |||
| 7 | An extension of VANAMBURG::Card that adds a stack_number field, | ||
| 8 | useful for stacks such as memorized decks. | ||
| 9 | |||
| 10 | =cut | ||
| 11 | |||
| 12 | =head2 stack_number | ||
| 13 | |||
| 14 | The location ( 1 through number of cards in packet or deck) where this | ||
| 15 | card is located in the stack when the stack is ordered. | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | 4 | has 'stack_number' => ( isa => 'Int', is => 'ro', required => 1 ); | |
| 20 | |||
| 21 | |||
| 22 | 4 | 1; | |