summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-11-28 13:38:04 +0100
committernsensfel <SpamShield0@noot-noot.org>2017-11-28 13:38:04 +0100
commit80358376b9300a0d73cb8b62dfa9fdd65240ca66 (patch)
tree6eb82383ba1fdfb33c68dbe699bc2a4b68763d24 /src/timed_cache_data.hrl
parent299a37b6d245dbb9806f4922cf492009775a8bf0 (diff)
Starting to work on attacks.
I find it difficult to keep the code tidy in Erlang...
Diffstat (limited to 'src/timed_cache_data.hrl')
-rw-r--r--src/timed_cache_data.hrl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timed_cache_data.hrl b/src/timed_cache_data.hrl
index 23441d3..89e0f41 100644
--- a/src/timed_cache_data.hrl
+++ b/src/timed_cache_data.hrl
@@ -1,9 +1,9 @@
%% TODO: add types.
-record(battlemap, {id, width, height, content, instances}).
-record(battlemap_instance, {id, chars, curr_player, players, rem_chars, last_turn}).
--record(character, {id, name, icon, portrait, mov_pts, atk_rg}).
+-record(character, {id, name, icon, portrait, health, mov_pts, atk_rg}).
-record(character_turn, {id, path, target}).
-record(player, {id, battlemaps, characters}).
%% Not stored in its own timed cache.
--record(character_instance, {x, y, team}).
+-record(character_instance, {x, y, health, team}).