public static bool CanDamageTeam(DamageTeam team1, DamageTeam team2) { if (team1 == DamageTeam.Any) { return(true); } if (team1 == team2) { return(false); } return(true); }
public void AssignDamageTeam(DamageTeam newDamageTeam) { _damageTeam = newDamageTeam; }
public Health(int _max, DamageTeam _team, IElement _element) { this.Resource = new Resource(_max); this.Team = _team; this.Element = _element; }
public Health(int _max, DamageTeam _team) { this.Resource = new Resource(_max); this.Team = _team; this.Element = new NullElement(); }
public Health(IResource _resource, DamageTeam _team, IElement _element) { this.Resource = _resource; this.Team = _team; this.Element = _element; }
public Health(IResource _resource, DamageTeam _team) { this.Resource = _resource; this.Team = _team; this.Element = new NullElement(); }