예제 #1
0
 public Memory(string tag, ERespawn reason, Action.Kind solve, float score)
 {
     last_tag    = tag;
     this.reason = reason;
     this.solve  = solve;
     this.score  = score;
 }
예제 #2
0
파일: NHidden.cs 프로젝트: TkRsln/MLearn
    public NHidden(GameObject go, string tag, Action.Kind first) : base(null, true, go)
    {
        this.tag = tag;
        Output ou = Visual.active.findOutByKind(first);

        addAkson(ou.getGOPosition());
        setText(tag);
    }
예제 #3
0
        public Action.Kind[] notTried(ERespawn reason)
        {
            int size = Enum.GetNames(typeof(Action.Kind)).Length;

            int[] finded = new int[size];
            for (int i = 0; i < size; i++)
            {
                finded[i] = i;
            }
            foreach (Memory m in learn)
            {
                if (m.reason == reason)
                {
                    finded[(int)m.solve] = 0;
                }
            }
            int size_last = 0;

            foreach (int i in finded)
            {
                if (i != 0)
                {
                    size_last++;
                }
            }
            int[] newFinded = new int[size_last];
            int   count     = 0;

            for (int i = 0; i < finded.Length; i++)
            {
                if (finded[i] != 0)
                {
                    newFinded[count] = finded[i]; count++;
                }
            }
            Array en = Enum.GetValues(typeof(Action.Kind));

            Action.Kind[] last = new Action.Kind[size_last];
            for (int i = 0; i < last.Length; i++)
            {
                last[i] = (Action.Kind)en.GetValue(newFinded[i]);
            }
            return(last);
        }
예제 #4
0
파일: Output.cs 프로젝트: TkRsln/MLearn
 public Output(GameObject obj, Action.Kind kind) : base(null, false, obj)
 {
     this.kind = kind;
     setText(kind.ToString());
 }