for(intneighbourIndex=0;neighbourIndex<originNode->card;neighbourIndex++)//Draw a ring for all the enemy nodes which can be attacked from the current selected attacker
DrawText("How many dices do you want to involve in the fight ?",screenWidth/2-(MeasureTextEx(font,"How many dice do you want to involve in the fight ?",30.0,3.0).x)/2+50,150,30,attacker->color);
DrawText("How many dices do you want to involve in the fight ?",screenWidth/2-(MeasureTextEx(font,"How many dice do you want to involve in the fight ?",30.0,3.0).x)/2+50,150,30,attacker->color);
DrawTextEx(font,"Defenders lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(font,"Defenders lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
}else{
//originNode->soldiers--;
//remainingAttackers--;
//printf("Attackers lose a soldier\n");
DrawTextEx(font,"Attackers lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(font,"Attackers lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
DrawTextEx(font,"Defenders lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(font,"Defenders lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
}
if(targetNode->soldiers<=0){
//printf("Node has been conquered\n");
DrawTextEx(font,"Node has been conquered",(Vector2){screenWidth/2-MeasureTextEx(font,"Node has been conquered",50.0,3.0).x/2-50,700},50.0,3.0,BLACK);
//Player_remove_Node(defender, targetNode);
//Player_add_Node(self, targetNode);
//targetNode->soldiers = attackersCount;
//originNode->soldiers -= attackersCount;
else
{
DrawTextEx(font,"Attackers lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(font,"Attackers lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);