Ejemplo n.º 1
0
        public static coins get_coin(int nus, int rad, int mass, int sx, int sy, double zams, double spx, double spy, bool orl, int tp)
        {
            var an = new coins();

            an.nu       = nus;
            an.r        = rad;
            an.m        = mass;
            an.x        = sx;
            an.y        = sy;
            an.zam      = zams;
            an.or       = orl;
            an.typecoin = tp;
            an.otb      = -1;
            an.vec      = new Point();
            an.prov     = new Point();
            return(an);
        }
Ejemplo n.º 2
0
        public static coins get_number_coin(int nus, int sx, int sy, bool orl, int num, double zams = 100.0, double spx = 0, double spy = 0)
        {
            var an = new coins();

            an.nu       = nus;
            an.r        = Z.tcoin[num].r;
            an.m        = Z.tcoin[num].m;
            an.x        = sx;
            an.y        = sy;
            an.zam      = zams;
            an.or       = orl;
            an.typecoin = num;
            an.otb      = -1;
            an.vec      = new Point();
            an.prov     = new Point();
            return(an);
        }