public void Register(AvatarDeath death) { if (death.get_Model() == this.get_Entities().player.get_Player()) { this.player1Death = death; } else if (death.get_Model() == this.get_Entities().opponent.get_Player()) { this.player2Death = death; } }
public AvatarDeath GetDeathForPlayer(AccountID account) { AvatarDeath result = null; if (account == this.get_Player1AccountID()) { result = this.player1Death; } else if (account == this.get_Player2AccountID()) { result = this.player2Death; } return(result); }