Dicewars-Java-Approach/server/game-logic/Manager/AttackInformations/AttackInformations.java

31 lines
846 B
Java
Raw Normal View History

2023-10-06 12:53:38 +02:00
package manager.attackinformations;
public class AttackInformations{
private int attack_field_dice;
private int defense_field_dice;
private boolean attack_success;
private boolean attack_allowed;
public AttackInformations(int input_att_field, int input_def_field,boolean input_attack_allowed){
attack_field_dice = input_att_field;
defense_field_dice = input_def_field;
attack_success = (input_att_field >= input_def_field);
attack_allowed = input_attack_allowed;
}
public int get_attack_field_dice(){
return attack_field_dice;
}
public int get_defense_field_dice(){
return defense_field_dice;
}
public boolean get_attack_success(){
return attack_success;
}
public boolean get_attack_allowed(){
return attack_allowed;
}
}