VANAMBURG::FaceValueSingleton
Provides efficient access to instances of VANAMBURG::FaceValue objects that can be reused to create cards. Attempts to provide memory and processor efficiency by allowing reuse of FaceValue object rather than creating new ones everytime they are needed.
ace
Returns the instance of VANAMBURG::FaceValue that represents an Ace. name => "Ace", value => 1, abbreviation => 'A'
two
Returns the instance of VANAMBURG::FaceValue that represents a Two. name => "Two", value => 2, abbreviation => '2'
two
Returns the instance of VANAMBURG::FaceValue that represents a Three. name => "Three", value => 3, abbreviation => '3'
two
Returns the instance of VANAMBURG::FaceValue that represents a Four. name => "Four", value => 4, abbreviation => '4'
two
Returns the instance of VANAMBURG::FaceValue that represents a Five. name => "Five", value => 5, abbreviation => '5'
six
Returns the instance of VANAMBURG::FaceValue that represents a Six. name => "Six", value => 6, abbreviation => '6'
seven
Returns the instance of VANAMBURG::FaceValue that represents a Seven. name => "Seven", value => 7, abbreviation => '7'
eight
Returns the instance of VANAMBURG::FaceValue that represents a Eight. name => "Eight", value => 8, abbreviation => '8'
nine
Returns the instance of VANAMBURG::FaceValue that represents a Nine. name => "Nine", value => 9, abbreviation => '9'
ten
Returns the instance of VANAMBURG::FaceValue that represents a Ten. name => "Ten", value => 10, abbreviation => '10'
jack
Returns the instance of VANAMBURG::FaceValue that represents a Jack. name => "Jack", value => 11, abbreviation => 'J'
queen
Returns the instance of VANAMBURG::FaceValue that represents a Queen. name => "Queen", value => 12, abbreviation => 'Q'
king
Returns the instance of VANAMBURG::FaceValue that represents a King. name => "King", value => 13, abbreviation => 'K'
default_value_cycle
Returns an array reference containing all the FaceValue instances in order A - K.
facevalue_by_abbreviation
Given a face value abbreviation ("A","2", "J", etc.) this method returns the appropriate singleton for the FaceValue.