summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-11-02 20:19:57 +0100 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-11-02 20:19:57 +0100 |
commit | 2ad88173a0bf967e483fdb785e0dda31d50e9009 (patch) | |
tree | 24984a23d797827e29263d0261853e2232eff5f3 /src/battle/struct/btl_battle.erl | |
parent | d6efe72291a12284536340d047f43737cbfd3b0b (diff) |
...
Diffstat (limited to 'src/battle/struct/btl_battle.erl')
-rw-r--r-- | src/battle/struct/btl_battle.erl | 12 |
1 files changed, 6 insertions, 6 deletions
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() }. |