X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FTargetSelection.h;h=3c70518f21613540c7c0cc2dd029acb02f95cdf2;hb=0b11a24a8b08c49d6e4301573602fb6d01e7a8c8;hp=b57a41df26c5d3ab80bd772b876f07221185cb02;hpb=b53c2ec2621ccc654e819cb203dc26e0a482bd41;p=l2e.git diff --git a/src/battle/TargetSelection.h b/src/battle/TargetSelection.h index b57a41d..3c70518 100644 --- a/src/battle/TargetSelection.h +++ b/src/battle/TargetSelection.h @@ -1,16 +1,11 @@ -/* - * TargetSelection.h - * - * Created on: Aug 9, 2012 - * Author: holy - */ - #ifndef BATTLE_TARGETSELECTION_H_ #define BATTLE_TARGETSELECTION_H_ -#include +namespace common { + class TargetingMode; +} -namespace common { class TargetingMode; } +#include namespace battle { @@ -22,8 +17,8 @@ public: explicit TargetSelection(BattleState *battle = 0, bool multiple = false, bool atEnemy = true); public: - bool TargetsEnemies() const { return enemy; } - bool TargetsHeroes() const { return !TargetsEnemies(); } + bool TargetsMonsters() const { return enemy; } + bool TargetsHeroes() const { return !TargetsMonsters(); } bool IsSelected(int index) const { return index >= 0 && index < int(selected.size()) && selected[index].type != State::IGNORE; } bool HasSelected() const { return selection >= 0; } int SingleSelection() const { return selection; } @@ -35,7 +30,7 @@ public: void ReadMode(const common::TargetingMode &); - void SelectEnemies(); + void SelectMonsters(); void SelectHeroes(); void Select(int index) { selected[index].type = State::SELECTED; selection = index; } void Unselect(int index) { selected[index].type = State::IGNORE; } @@ -89,4 +84,4 @@ private: } -#endif /* BATTLE_TARGETSELECTION_H_ */ +#endif