Пример #1
0
 public BoardObj(BoardObj bo)
 {
     this.Name                = bo.Name;
     this.card                = bo.card;
     this.type                = bo.type;
     this.Transport           = bo.Transport;
     this.affectOn            = bo.affectOn;
     this.Position            = bo.Position;
     this.own                 = bo.own;
     this.pID                 = bo.pID; //-????????
     this.Line                = bo.Line;
     this.GId                 = bo.GId;
     this.cost                = bo.cost;
     this.DeployTime          = bo.DeployTime;
     this.DamageRadius        = bo.DamageRadius;
     this.MaxHP               = bo.MaxHP;
     this.HP                  = bo.HP;
     this.Atk                 = bo.Atk;
     this.Shield              = bo.Shield;
     this.Speed               = bo.Speed;
     this.HitSpeed            = bo.HitSpeed;
     this.MinRange            = bo.MinRange;
     this.Range               = bo.Range;
     this.SightRange          = bo.SightRange;
     this.TargetType          = bo.TargetType;
     this.MaxTargets          = bo.MaxTargets;
     this.attacking           = bo.attacking;
     this.attacked            = bo.attacked;
     this.LifeTime            = bo.LifeTime;
     this.SpawnNumber         = bo.SpawnNumber;
     this.SpawnInterval       = bo.SpawnInterval;
     this.SpawnTime           = bo.SpawnTime;
     this.SpawnCharacterLevel = bo.SpawnCharacterLevel;
     this.frozen              = bo.frozen;
     this.clone               = bo.clone;
     this.startFrozen         = bo.startFrozen;
     this.attacker            = bo.attacker;
     this.target              = bo.target;
     this.DeathEffect         = bo.DeathEffect;
     this.Tower               = bo.Tower;
     this.extraData           = bo.extraData;
 }
Пример #2
0
 public BoardObj(CardDB.cardName cName, int lvl = 0)
 {
     CardDB.Card c = CardDB.Instance.getCardDataFromName(cName, lvl);
     this.card      = c;
     this.Name      = c.name;
     this.type      = c.type;
     this.Transport = c.Transport;
     this.affectOn  = c.affectType;
     //this.Position = c.Position;
     //this.own = c.own;
     //this.pID = c.pID; //-????????
     //this.Line = c.Line;
     //this.GId = c.GId;
     this.cost         = c.cost;
     this.DeployTime   = c.DeployTime;
     this.DamageRadius = c.DamageRadius;
     this.MaxHP        = c.MaxHP;
     this.HP           = c.MaxHP;
     this.Atk          = c.Atk;
     this.Shield       = c.Shield;
     this.Speed        = c.Speed;
     this.HitSpeed     = c.HitSpeed;
     this.MinRange     = c.MinRange;
     this.Range        = c.MaxRange;
     this.SightRange   = c.SightRange;
     this.TargetType   = c.TargetType;
     this.MaxTargets   = c.MultipleTargets;
     //this.attacking = c.attacking;
     //this.attacked = c.attacked;
     this.LifeTime            = c.LifeTime;
     this.SpawnNumber         = c.SpawnNumber;
     this.SpawnInterval       = c.SpawnInterval;
     this.SpawnTime           = c.SpawnPause;
     this.SpawnCharacterLevel = c.SpawnCharacterLevel;
     //this.frozen = c.frozen;
     //this.startFrozen = c.startFrozen;
     //this.attacker = c.attacker;
     //this.target = c.target;
     this.DeathEffect = c.DeathEffect;
     //this.Tower = c.Tower;
 }
Пример #3
0
 public abstract int GetPlayCardPenalty(CardDB.Card card, Playfield p);