public class BattleEvent extends EventObject {
private BattleEventType type;
private BattleOpponent currentOpponent;
private BattleOpponent winner;
private Attack attack;
private Collectible collectible;
public BattleEvent(Battle battle, BattleEventType type) {
super(battle);
this.type=type;
this.currentOpponent=battle.getMe();
}
私はbattleeventオブジェクトを別のクラスに持っています。私は戦闘にアクセスしたいです。私はeventObjectに送信しました。どのようにアクセスできますか?スーパークラスに送信されたものにアクセスする方法