﻿// 类库
var ConfigClass = {
    Version: '1.0.1',
    create: function() {
        return function() { this.initialize.apply(this, arguments); }
    }
};

//兵力配置
ForceConfig = ConfigClass.create();
ForceConfig.prototype = {
    initialize: function(force, name, target, Bigpicadd, attacttype, distanse) {
        this.ForceNum = force; //兵种数量
        this.ForceName = name; //兵种名称
        this.Target = target; //攻击对象 默认同类型兵种
        this.BigPicture = Bigpicadd; //兵种图片
        this.AttType = attacttype; //攻击类型 0：前进 1：防御 2：后退
        this.Distanse = distanse;
    }
}

//科技配置
TechnologyConfig = ConfigClass.create();
TechnologyConfig.prototype = {
    initialize: function(technology) {
        this.TechLevel = technology;
    }
}

//城防配置
CityDefenseConfig = ConfigClass.create();
CityDefenseConfig.prototype = {
    initialize: function(citydefense, name, target, Bigpicadd, endure) {
        this.CiteDefenseNum = citydefense; //城防数量
        this.DefenseName = name; //城防名称
        this.Target = target; //攻击对象
        this.BigPicture = Bigpicadd; //城防图片
        this.Endure = endure;
    }
}
