public Tower(XmlElement from) { MaxHP = 2; HP = MaxHP; Damage = BASE_DAMAGE; id = from.Attributes["id"].Value; idIssuer.RegisterId(id, this); }
public Deck(string id = "") { if (id == "") { this.id = idIssuer.IssueId(this); } else { idIssuer.RegisterId(id, this); this.id = id; } }
public Hand(string id = "") { if (id == "") { this.id = IdIssuer.IssueId(this); } else { IdIssuer.RegisterId(id, this); this.id = id; } }
public Lane(XmlElement from) { _ID = from.Attributes["id"].Value; idIssuer.RegisterId(_ID, this); Towers = new Tower[2]; foreach (XmlElement towerElement in from.GetElementsByTagName(Tower.TAG_NAME)) { int towerIndex = int.Parse(towerElement.Attributes["index"].Value); Towers[towerIndex] = new Tower(towerElement); } Units = new Unit[2, 2]; }
public ResourcePool(int max, string id = "") { this.max = max; this.count = 0; if (id == "") { this.id = idIssuer.IssueId(this); } else { this.id = id; idIssuer.RegisterId(id, this); } }
public Unit(UnitCard card, int id, GameManager gm) { this.id = "" + id; IdIssuer.RegisterId(this.id, this); Constructor(card, gm); }