From 2ad88173a0bf967e483fdb785e0dda31d50e9009 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sat, 2 Nov 2019 20:19:57 +0100 Subject: ... --- src/battle/struct/btl_battle.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/battle/struct/btl_battle.erl') diff --git a/src/battle/struct/btl_battle.erl b/src/battle/struct/btl_battle.erl index 460e2c4..09298e6 100644 --- a/src/battle/struct/btl_battle.erl +++ b/src/battle/struct/btl_battle.erl @@ -15,7 +15,7 @@ characters :: orddict:orddict(non_neg_integer(), btl_character:either()), players :: orddict:orddict(non_neg_integer(), btl_player:type()), current_player_turn :: btl_player_turn:type(), - conditions :: btl_condition:collection() + conditions :: btl_conditions:type() } ). @@ -586,16 +586,16 @@ ataxia_set_current_player_turn (PlayerTurn, PlayerTurnUpdate, Battle) -> -spec get_conditions_field() -> non_neg_integer(). get_conditions_field () -> #battle.conditions. --spec get_conditions (type()) -> btl_condition:collection(). +-spec get_conditions (type()) -> btl_conditions:type(). get_conditions (#battle{ conditions = R }) -> R. --spec set_conditions (btl_condition:collection(), type()) -> type(). +-spec set_conditions (btl_conditions:type(), type()) -> type(). set_conditions (Conditions, Battle) -> Battle#battle{ conditions = Conditions }. -spec ataxia_set_conditions ( - btl_condition:collection(), + btl_conditions:type(), ataxic:basic(), type() ) @@ -612,7 +612,7 @@ ataxia_set_conditions (Conditions, Update, Battle) -> -spec ataxia_set_conditions ( - btl_condition:collection(), + btl_conditions:type(), type() ) -> {type(), ataxic:basic()}. @@ -637,5 +637,5 @@ new (Map) -> characters = EmptyDict, players = EmptyDict, current_player_turn = btl_player_turn:new(0, 0), - conditions = btl_condition:new_collection() + conditions = btl_conditions:new() }. -- cgit v1.2.3-70-g09d2