Initial support for ordering choices and getting them ready for execution.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -8,11 +8,16 @@ namespace CreatureLib::Battling{
 | 
			
		||||
    class AttackTurnChoice : public BaseTurnChoice {
 | 
			
		||||
        LearnedAttack* _attack;
 | 
			
		||||
    public:
 | 
			
		||||
        AttackTurnChoice(Creature* c) : BaseTurnChoice(c){}
 | 
			
		||||
        AttackTurnChoice(Creature* c, LearnedAttack* attack)
 | 
			
		||||
            : BaseTurnChoice(c), _attack(attack){}
 | 
			
		||||
 | 
			
		||||
        inline LearnedAttack* GetAttack() const{
 | 
			
		||||
            return _attack;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        TurnChoiceKind GetKind() const override {
 | 
			
		||||
            return TurnChoiceKind ::Attack;
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,8 @@
 | 
			
		||||
#include "TurnChoiceKind.hpp"
 | 
			
		||||
 | 
			
		||||
namespace CreatureLib::Battling{
 | 
			
		||||
    class Creature;
 | 
			
		||||
 | 
			
		||||
    class BaseTurnChoice {
 | 
			
		||||
        Creature* _user;
 | 
			
		||||
    protected:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user