Пример #1
0
    public void DefeatWarrior(BattleActor actor)
    {
        if (actor != null && AvailableActors.Contains(actor))
        {
            AvailableActors.Remove(actor);
            UsedActors.Remove(actor);
            DefeatedActors.Add(actor);

            actor.RemoveFromBoard();
        }
    }
 public Adr GetActorDefinition(string name)
 {
     return((Adr)AvailableActors.Find(actor => actor.Name == name));
 }
Пример #3
0
    public void AddWarrior(WarriorType type)
    {
        BattleActor actor = new BattleActor(type, this);

        AvailableActors.Add(actor);
    }