Exemplo n.º 1
0
    /** 取一个单位实例ID */
    public int getUnitInstanceID()
    {
        int re;

        while (_units.contains(re = _unitInstanceIDMaker.get()))
        {
            ;
        }

        return(re);
    }
Exemplo n.º 2
0
    /** 取一个单位实例ID */
    private int getBuffInstanceID()
    {
        int re;

        while (_buffDatas.contains(re = _buffInstanceIDMaker.get()))
        {
            ;
        }

        return(re);
    }