package manager.attackinformations; /** * AttackInformations is just for the Informations of which field threw which * Number with the current Dice, if the Attack was succesfull or not and * if the Attack was allowed. * **/ 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; } }