From 80358376b9300a0d73cb8b62dfa9fdd65240ca66 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 28 Nov 2017 13:38:04 +0100 Subject: Starting to work on attacks. I find it difficult to keep the code tidy in Erlang... --- src/timed_cache_data.hrl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/timed_cache_data.hrl') 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}). -- cgit v1.2.3-70-g09d2