aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-04-24 22:06:16 +0200
committerpiernov <piernov@piernov.org>2016-04-24 22:06:16 +0200
commit6dea6c0fbbc748e417076e7ca0d7773452b1bb57 (patch)
treefd6c133433b3304610d3f26072196cd15b2ce862 /inc
parent8a3610d9ac8349877b7a023a417288c2daee14ba (diff)
downloadcandybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.tar.gz
candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.tar.bz2
candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.tar.xz
candybox-6dea6c0fbbc748e417076e7ca0d7773452b1bb57.zip
Add PHP Item class
Diffstat (limited to 'inc')
-rw-r--r--inc/Item.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/Item.inc b/inc/Item.inc
new file mode 100644
index 0000000..bf77818
--- /dev/null
+++ b/inc/Item.inc
@@ -0,0 +1,17 @@
+<?php
+
+class Item {
+ public $name = "";
+ public $cost = 0;
+ public $icon = "";
+ public $desc = "";
+
+ function __construct($name, $cost, $icon, $desc) {
+ $this->name = $name;
+ $this->cost = $cost;
+ $this->icon = $icon;
+ $this->desc = $desc;
+ }
+}
+
+?>