Пример #1
0
    public static bool CanDamageTeam(DamageTeam team1, DamageTeam team2)
    {
        if (team1 == DamageTeam.Any)
        {
            return(true);
        }

        if (team1 == team2)
        {
            return(false);
        }

        return(true);
    }
Пример #2
0
 public void AssignDamageTeam(DamageTeam newDamageTeam)
 {
     _damageTeam = newDamageTeam;
 }
Пример #3
0
 public Health(int _max, DamageTeam _team, IElement _element)
 {
     this.Resource = new Resource(_max);
     this.Team     = _team;
     this.Element  = _element;
 }
Пример #4
0
 public Health(int _max, DamageTeam _team)
 {
     this.Resource = new Resource(_max);
     this.Team     = _team;
     this.Element  = new NullElement();
 }
Пример #5
0
 public Health(IResource _resource, DamageTeam _team, IElement _element)
 {
     this.Resource = _resource;
     this.Team     = _team;
     this.Element  = _element;
 }
Пример #6
0
 public Health(IResource _resource, DamageTeam _team)
 {
     this.Resource = _resource;
     this.Team     = _team;
     this.Element  = new NullElement();
 }