//
//  RetreatCommandFactory.hpp
//  eagle0
//
//  Created by Dan Crosby on 12/30/19.
//  Copyright © 2019 none. All rights reserved.
//

#ifndef RetreatCommandFactory_hpp
#define RetreatCommandFactory_hpp

#include "src/main/cpp/net/eagle0/shardok/library/ShardokCommand.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/command_factories/CommandFactory.hpp"
#include "src/main/cpp/net/eagle0/shardok/library/settings/GameSettings.hpp"

namespace shardok {

class RetreatCommandFactory : public CommandFactory {
private:
    const SettingsGetter settings;

public:
    explicit RetreatCommandFactory(const SettingsGetter &getter);

    void AddAvailableCommands(CommandList &commands, const CommandParams &params) const override;

    void AddAvailableRetreatCommands(
            CommandList &commands,
            const Unit *unit,
            ActionPoints remainingActionPoints,
            bool isAttacker) const;
};
}  // namespace shardok

#endif /* RetreatCommandFactory_hpp */
