summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-01-16 16:41:35 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-01-16 16:41:35 +0100
commitab32dbbae593db59c878b169a45e5b30bc91354f (patch)
treeff882543002b161f9bbc077856ae522e7c228c77 /src/type/glyph.erl
parent45163fc1a88fe149ddda72e9233baa9f4a1e9a79 (diff)
Starting to add attributes/stats/equipment.
Diffstat (limited to 'src/type/glyph.erl')
-rw-r--r--src/type/glyph.erl45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/type/glyph.erl b/src/type/glyph.erl
new file mode 100644
index 0000000..18d8455
--- /dev/null
+++ b/src/type/glyph.erl
@@ -0,0 +1,45 @@
+-module(glyph).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-record
+(
+ glyph,
+ {
+ id,
+ name,
+ icon,
+ pos_attrib_mods,
+ neg_attrib_mods
+ }
+).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%% Accessors
+-export
+(
+ [
+ get_id/1,
+ get_name/1,
+ get_icon/1,
+ get_pos_attrib_mods/1,
+ get_neg_attrib_mods/1
+ ]
+).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%% Accessors
+get_id (Gh) -> Gh#glyph.id.
+get_name (Gh) -> Gh#glyph.name.
+get_icon (Gh) -> Gh#glyph.icon.
+get_pos_attrib_mods (Gh) -> Gh#glyph.pos_attrib_mods.
+get_neg_attrib_mods (Gh) -> Gh#glyph.neg_attrib_mods.