public ItemWeapon(string name,BattleCore.elements Element, int BaseDamage, float AttackInterval) { this._Name = name; this._Element = Element; this._BaseDamage = BaseDamage; this._AttackInterval = AttackInterval; }
public void ApplyProperties(GameManager.EnemyProperties prop) { this.canSearch = prop.CanSearch; this.canMove = prop.CanMove; this.canAttack = prop.CanAttack; //this.speed = prop.Speed; this.turningSpeed = prop.TurningSpeed; this.endReachedDistance = prop.EndReachedDistance; this.detectRange = prop.DetectRange; //this.MaxHP = prop.MaxHP; this.CurHP = this.MaxHP; this.Element = prop.Element; this.FactionSelf = prop.FactionSelf; this.FactionHostile = prop.FactionHostile; this.BaseArmour = prop.BaseArmour; this.BaseAttack = prop.BaseAttack; this.mass = prop.Mass; }
public ItemWeapon(BattleCore.elements Element, int BaseDamage) { this._Element = Element; this._BaseDamage = BaseDamage; }
public EnemyProperties(bool initialize) { Name = "NoName"; CanSearch = true; CanMove = true; Speed = 3; TurningSpeed = 5; EndReachedDistance = 2f; DetectRange = 10; CanAttack = true; MaxHP = 2; Element = BattleCore.elements.Earth; FactionSelf = new List<BattleCore.Factions>(); FactionSelf.Add( BattleCore.Factions.alien ); FactionHostile = new List<BattleCore.Factions>(); FactionHostile.Add( BattleCore.Factions.human ); BaseArmour = 0; BaseAttack = 1; Mass = 3; }