Exemplo n.º 1
0
 public override void initConfig(Dictionary <string, object> data = null)
 {
     this.itemType = (int)(data["itemType"]);
     this._shape   = Collision.createGeom(this, new object[] { (int)(data["radius"]) });
     this.beanVO   = BeanVO.getVOByType(this.itemType);
     base.initConfig(data);
 }
Exemplo n.º 2
0
 public static void initPower()
 {
     POWER_INIT      = (int)(powerConfig["init"]);
     POWER_MAX       = (int)(powerConfig["max"]);
     POWER_UNIT      = (int)(powerConfig["unit"]);
     POWER_GAIN      = (int)(powerConfig["gain"]);
     LAST_POWER_GAIN = (int)(powerConfig["lastGain"]);
     BeanVO.init();
 }
Exemplo n.º 3
0
 public static void init()
 {
     for (int i = 0, len = 4; i < len; i++)
     {
         int itemType = (i + 1);
         Dictionary <string, object> beanConfig = (Dictionary <string, object>)ConfigConstant.powerConfig["bean" + itemType];
         _map[itemType] = new BeanVO()
         {
             itemType = (int)beanConfig["itemType"],
             power    = (int)beanConfig["power"],
             cure     = Convert.ToDouble(beanConfig["cure"]),
             push     = Convert.ToDouble(beanConfig["push"]),
             score    = (int)beanConfig["score"]
         };
     }
 }
Exemplo n.º 4
0
 public override void setData(Dictionary <string, object> data)
 {
     this.itemType = (int)(data["itemType"]);
     this.beanVO   = BeanVO.getVOByType(this.itemType);
     base.setData(data);
 }