From 9f28616dfd1cc425c5013937bab729217b7be2e6 Mon Sep 17 00:00:00 2001 From: piernov Date: Sun, 8 May 2016 20:45:40 +0200 Subject: Add build_doc.sh script + generated phpdoc --- doc/phpdoc/packages/inc.shop.inc.html | 208 ++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 doc/phpdoc/packages/inc.shop.inc.html (limited to 'doc/phpdoc/packages/inc.shop.inc.html') diff --git a/doc/phpdoc/packages/inc.shop.inc.html b/doc/phpdoc/packages/inc.shop.inc.html new file mode 100644 index 0000000..fbdefe6 --- /dev/null +++ b/doc/phpdoc/packages/inc.shop.inc.html @@ -0,0 +1,208 @@ + + + + + + » \inc\shop.inc + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ +
+
+ +
+ +
+ +
+ + + + +
+

Functions

+
+

loadShop

+

Loads all the shop's items from the XML file data/items.xml.

+
+ « More » +
+ +
+

getItem

+

Gets an Item object from the shop from its name.

+
+ « More » +
+ +
+

initShop

+

Marks the shop as created in the session.

+
+ « More » +
+ +
+

sendShop

+

Returns the shop array if it was created.

+
+ « More » +
+ +
+

buildShop

+

Creates the shop in the session and sends it to the client.

+
Debits the shop's cost from the player's gold.
+ « More » +
+ +
+

buyItem

+

Debits the item's cost specified as the item POST parameter, adds it to the Inventory and sends it to the client.

+
+ « More » +
+ +
+

useItem

+

Invoke useItem on an item passed as the item POST parameter, sends to the client the updated player stats and the item.

+
+ « More » +
+ +
+ + + + +
+
+
+ + + + -- cgit v1.2.3-70-g09d2