Table of Contents

Class CompanionHarmRelation

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Companions: the same party, the same guild, or an owner and its own pet (the principals are then the same). Never harmed, whatever either toggle says: aggression never turns into friendly fire. Asked after the arena (where the match's teams decide alone) and wildlife (which has no party or guild).

public sealed class CompanionHarmRelation : IHarmRelation, ICompanionRelation
Inheritance
CompanionHarmRelation
Implements
Inherited Members

Fields

RelationOrder

public const int RelationOrder = 300

Field Value

int

Properties

Order

Lower is asked first. The built-ins: arena 100, wildlife 200, companions 300, factions 400.

public int Order { get; }

Property Value

int

Methods

AreCompanions(ICharacter, ICharacter)

Whether two principals are on one side.

public bool AreCompanions(ICharacter a, ICharacter b)

Parameters

a ICharacter
b ICharacter

Returns

bool

Judge(ICharacter, ICharacter)

This relation's say about attacker harming defender (two different sides).

public HarmJudgement Judge(ICharacter attacker, ICharacter defender)

Parameters

attacker ICharacter
defender ICharacter

Returns

HarmJudgement

OnAllowed(ICharacter, ICharacter)

A hit between two different sides was allowed and is about to land (each relation hears it, whoever decided).

public void OnAllowed(ICharacter attacker, ICharacter defender)

Parameters

attacker ICharacter
defender ICharacter

OnRefusedAttack(ICharacter, ICharacter, long, IHarmRelation)

A hit was refused at the character an attack cast actually struck (never area splash): refusedBy is the relation that refused it. Each relation hears it.

public void OnRefusedAttack(ICharacter attacker, ICharacter defender, long castKey, IHarmRelation refusedBy)

Parameters

attacker ICharacter
defender ICharacter
castKey long
refusedBy IHarmRelation