public void undoUpdate(int user)
 {
     if (cursor[user] > 0)
     {
         cursor[user]--;
         HumanSkeleton.copy(myRecorder[user].ElementAt(cursor[user]), skeletons[user]);
     }
 }
 internal void updateToPosition(int p, int user)
 {
     if (cursor[user] < myRecorder[user].Count)
     {
         HumanSkeleton.copy(myRecorder[user].ElementAt(cursor[user]), skeletons[user]);
         cursor[user] = p;
     }
 }
 public void update(int user)
 {
     if (cursor[user] < myRecorder[user].Count)
     {
         HumanSkeleton.copy(myRecorder[user].ElementAt(cursor[user]), skeletons[user]);
         cursor[user]++;
     }
 }
Beispiel #4
0
 public override void update()
 {
     for (int user = 0; user < skeletons.Count; user++)
     {
         HumanSkeleton nuevo = new HumanSkeleton();
         nuevo.init();//lo inicializa con las 15 partes del cuerpo
         HumanSkeleton.copy(skeletons[user], nuevo);
         myRecorder[user].Add(nuevo);
         cursor[user] += 1;
     }
 }