'

Peter Downies card_game_kit

Soap Functions

Server:

http://soap.peterdownie.com/webServices/card_game_kit/server.php

Generator

: http://soap.peterdownie.com/webServices/card_game_kit/petersWebServiceClassGenerator.php

PDF Auto Documentation

:http://soap.peterdownie.com/webServices/card_game_kit/documentation_maker.php

Software Version

: 2.41k

Greater Code Name(GCN)

: Atomic

Lesser Code Name(LCN)

: Neutron

Service Version

: 0.01
* CREATED BY: Peter Downie of peterdownie.com
* Card class for making card programs!
* Seperated into 4 catagories
* CARDS are the deck!
* Pile is for piles
* Hands are for players hands, they are basically piles but allow for better distinction.
* Counter is use for keeping track of scores or tricks.



saveData

( )
Save the data for later use in function restoreData

restoreData

( #0 savedData )
Restore Saved Data Produced by function saveData

generateCards_standard

( #0 number_of_decks )
Generates standard playing cards with X number of decks.

generateCards_special

( #0 number_of_decks , #1 cardValues , #2 suits )
Generate a custom deck, for example a euchre deck which only uses 9,10,J,Q,K,A

shuffleCards

( )
Shuffle the cards

seeRemainingCards

( )
* See how many cards are left in the deck in the current order.

dealCard

( #0 number_of_cards )

put_cards_on_top_of_deck

( #0 cards )
* Puts cards on the top of the deck
* Does not return errors, must have suit and value in array.

put_cards_on_bottom_of_deck

( #0 cards )
Puts cards onto the bottom of the deck.
Does not return errors, must have suit and value in array.

bury_cards_into_random_part_of_deck

( #0 cards )
Buries cards into the deck. The cards stay together.

makePile

( #0 pileName )
Create a new pile.

makeHand

( #0 handName )
Create a new Hand.

addCardsToHand

( #0 handName , #1 cards )
Adds cards to a players hand!

addCardsToPile

( #0 pileName , #1 cards )
* Add cards to a pile, based on add to a hand with better coding.

removeCardsFromHand

( #0 handName , #1 cards )
Removes a card from a users hand. Removes multiple of same card only if specified.

removeCardsFromPile

( #0 pileName , #1 cards )
* Remove cards by suit and value from a specific pile.

getAllCardsInHand

( #0 handName )
Get all cards in a users hand.

getAllCardsInPile

( #0 pileName )
Gets all of the cards from a pile.

get_top_card

( #0 grouping , #1 groupName )

make_counter

( #0 counterName , #1 default_value )
Creates a counter and gives it a default value.

set_counter

( #0 counterName , #1 value )
Sets a counter to a value

modify_counter

( #0 counterName , #1 modifier )
Adds or subtracts values from a counter.

get_counterValue

( #0 counterName )
Gets the current value of a counter.


Creator did not override lowerText