コード例 #1
0
ファイル: AttachmentCard.cs プロジェクト: ll2585/LOTRLCG
 public AttachmentCard(string card_name, int cost, LOTRGame.SPHERE_OF_INFLUENCE sphere, List <LOTRGame.TRAITS> traits,
                       string ability, string set, string type = "ATTACHMENT", bool unique = false) : base(card_name: card_name,
                                                                                                           sphere: sphere, traits: traits,
                                                                                                           cost: cost, willpower: -1, attack: -1, defense: -1, hp: -1, ability: ability, set: set, type: type,
                                                                                                           unique: unique)
 {
 }
コード例 #2
0
    public bool has_hero_of_sphere(LOTRGame.SPHERE_OF_INFLUENCE sphere)
    {
        foreach (var hero in heroes)
        {
            if (hero.get_sphere() == sphere)
            {
                return(true);
            }
        }

        return(false);
    }
コード例 #3
0
ファイル: LOTRHero.cs プロジェクト: ll2585/LOTRLCG
 public LOTRHero(string hero_name, LOTRGame.SPHERE_OF_INFLUENCE sphere, List <LOTRGame.TRAITS> traits, int threat,
                 int willpower, int attack, int defense, int hp, string ability, string set, string type = "HERO", bool unique = true) : base(card_name: hero_name, sphere: sphere, traits: traits,
                                                                                                                                              cost: -1, willpower: willpower, attack: attack, defense: defense, hp: hp, ability: ability, set: set, type: type, unique: true)
 {
     this.name               = hero_name;
     sphere_of_influence     = sphere;
     this.traits             = traits;
     this.threat_cost        = threat;
     this.willpower_strength = willpower;
     this.attack_strength    = attack;
     this.defense_strength   = defense;
     this.hit_points         = hp;
     this.ability            = ability;
     this.set        = set;
     resource_tokens = 0;
 }
コード例 #4
0
ファイル: PlayerCard.cs プロジェクト: ll2585/LOTRLCG
 public PlayerCard(string card_name, LOTRGame.SPHERE_OF_INFLUENCE sphere, List <LOTRGame.TRAITS> traits, int cost,
                   int willpower, int attack, int defense, int hp, string ability, string set, string type, bool unique) : base(name: card_name)
 {
     this.name               = card_name;
     this.cost               = cost;
     sphere_of_influence     = sphere;
     this.traits             = traits;
     this.willpower_strength = willpower;
     this.attack_strength    = attack;
     this.defense_strength   = defense;
     this.hit_points         = hp;
     this.ability            = ability;
     this.set          = set;
     this.type         = type;
     resource_tokens   = 0;
     this.exhausted    = false;
     this.dead         = false;
     this.committed    = false;
     this.damage_taken = 0;
     my_attachments    = new List <AttachmentCard>();
     temporary_traits  = new List <LOTRGame.TRAITS>();
     has_action        = false;
     action_criteria   = null;
 }
コード例 #5
0
ファイル: EventCard.cs プロジェクト: ll2585/LOTRLCG
 public EventCard(string card_name, int cost, LOTRGame.SPHERE_OF_INFLUENCE sphere,
                  string ability, string set, string type = "EVENT", bool unique = false) : base(card_name: card_name, sphere: sphere, traits: null,
                                                                                                 cost: cost, willpower: -1, attack: -1, defense: -1, hp: -1, ability: ability, set: set, type: type, unique: unique)
 {
 }