예제 #1
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                switch (hash)
                {
                case 22986280:
                {
                    this.evaluter = ((global::eval.Evaluter)(@value));
                    return(@value);
                }


                case 1492589217:
                {
                    this.timeout = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
예제 #2
0
 public static void __hx_ctor__BattleMain(global::BattleMain __hx_this, string mapPath)
 {
     unchecked {
         global::haxe.Log.trace.__hx_invoke2_o(default(double), mapPath, default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "new", "BattleMain", "BattleMain.hx" }, new int[] { 1981972957 }, new double[] { ((double)(29)) }));
         global::game.Game           game1    = new global::game.Game();
         object                      map      = new global::haxe.format.JsonParser(((string)(global::sys.io.File.getContent(mapPath)))).parseRec();
         global::eval.Evaluter       evaluter = new global::eval.Evaluter(((global::Array <double>)(global::eval.Evaluter.MS_TABLE)));
         global::search.BeamSearcher sercher  = new global::search.BeamSearcher(0.1, evaluter);
         game1.setupMap(map);
         game1.setupPunters(global::BattleMain.PUNTERS);
         {
             int _g1 = 0;
             int _g  = game1.riverCount;
             while ((_g1 < _g))
             {
                 int    i      = _g1++;
                 int    punter = global::game._PunterId.PunterId_Impl_._new((i % global::BattleMain.PUNTERS));
                 object move   = sercher.getMove(game1, punter);
                 game1.addMove(move);
                 global::haxe.Log.trace.__hx_invoke2_o(default(double), global::haxe.lang.Runtime.concat("move", global::haxe.lang.Runtime.toString(i)), default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "new", "BattleMain", "BattleMain.hx" }, new int[] { 1981972957 }, new double[] { ((double)(42)) }));
             }
         }
     }
 }
예제 #3
0
 public BeamSearcher(double timeout, global::eval.Evaluter evaluter)
 {
     global::search.BeamSearcher.__hx_ctor_search_BeamSearcher(this, timeout, evaluter);
 }
예제 #4
0
 public static void __hx_ctor_search_BeamSearcher(global::search.BeamSearcher __hx_this, double timeout, global::eval.Evaluter evaluter)
 {
     __hx_this.evaluter = evaluter;
     __hx_this.timeout  = timeout;
 }
예제 #5
0
 public static void __hx_ctor_eval_Evaluter(global::eval.Evaluter __hx_this, global::Array <double> table)
 {
     __hx_this.table = table;
 }