示例#1
0
 public void SetCommanderAttributes(string name, GameObject prefab, string selectedCommanderPrefabPath, int startingHp, int startingHandSize, CommanderData cData, int playerId, int abilityChargeCost, GameConstants.CommanderAbilityTargetType abilityTargetType, int manaPerTurn)
 {
     //Data members
     this.commanderName               = name;
     this.commanderPrefab             = prefab;
     this.selectedCommanderPrefabPath = selectedCommanderPrefabPath;
     this.hp                = startingHp;
     this.handSize          = startingHandSize;
     this.playerId          = playerId;
     this.commanderData     = cData;
     this.abilityChargeCost = abilityChargeCost;
     this.abilityTargetType = abilityTargetType;
     this.manaPerTurn       = manaPerTurn;
 }
示例#2
0
 public void SetCommanderAttributes(CommanderData data)
 {
     //Data members
     this.commanderName = data.CharName;
     this.selectedCommanderPrefabPath = data.PrefabPath;
     this.hp                = data.HP;
     this.handSize          = data.CurrentHandSize;
     this.abilityChargeCost = data.AbilityChargeCost;
     this.abilityChargeType = data.AbilityChargeType;
     this.commanderData     = data;
     this.abilityTargetType = data.AbilityTargetType;
     this.manaPerTurn       = data.ManaPerTurn;
     Debug.Log("(2) SetCommanderAttributes called by " + data.CharName);
 }
示例#3
0
 public CommanderData(string characterName, GameConstants.CardCommanderType cardCommanderType, int commanderHP, int startingHandSize, string prefabResourcePath, GameConstants.CommanderAbilityChargeType abilityChargeType, int abilityChargeCost, GameConstants.CommanderAbilityTargetType abilityTargetType, List <CardEntry> deck)
 {
     this._charName          = characterName;
     this._cardCommanderType = cardCommanderType;
     this._hp = commanderHP;
     this._startingHandSize = startingHandSize;
     this._prefabPath       = prefabResourcePath;
     //Initialize other values
     this._currentHandSize   = this._startingHandSize;
     this._maxHp             = this._hp;
     this._abilityChargeType = abilityChargeType;
     this._abilityChargeCost = abilityChargeCost;
     this._abilityTargetType = abilityTargetType;
     this._deck = deck;
 }