Exemplo n.º 1
0
 private void updateEdge(bool is_edge)
 {
     CTrgState.CBitset at = this.m_state.getAt(0);
     if (at.test(0))
     {
         if (this.m_state[1].test(0))
         {
             return;
         }
         at.set(2, true);
         int pos = is_edge ? 8 : 11;
         at.set(pos, true);
     }
     else if (this.m_state[1].test(0))
     {
         at.set(3, true);
         int pos = is_edge ? 10 : 13;
         at.set(pos, true);
     }
     else
     {
         if (!at.test(14) || !is_edge)
         {
             return;
         }
         at.set(10, true);
     }
 }
Exemplo n.º 2
0
 private void updateOnPrev(bool is_on)
 {
     if (this.m_state.size() == this.m_state.max_size())
     {
         CTrgState.CBitset back = this.m_state.back;
         back.reset();
         this.m_state.pop_back();
         this.m_state.push_front(back);
     }
     else
     {
         this.m_state.push_front();
     }
     CTrgState.CBitset at1 = this.m_state.getAt(0);
     CTrgState.CBitset at2 = this.m_state.getAt(1);
     if (is_on)
     {
         at1.set(0, true);
     }
     if (at2.test(0))
     {
         at1.set(1, true);
     }
     if (at2.test(10))
     {
         at1.set(16, at2.test(16));
     }
     else
     {
         for (int index = 0; index < CTrgState.takeover.Length; ++index)
         {
             at1.set(CTrgState.takeover[index], at2.test(CTrgState.takeover[index]));
         }
     }
 }
 // Token: 0x06002A83 RID: 10883 RVA: 0x0015A7E4 File Offset: 0x001589E4
 private void updateLock()
 {
     CTrgState.CBitset at = this.m_state.getAt(0);
     if (at.test(8))
     {
         at.set(14, true);
     }
     if (this.m_state[1].test(10))
     {
         at.set(14, false);
     }
 }
Exemplo n.º 4
0
 private void updateClick()
 {
     CTrgState.CBitset at = this.m_state.getAt(0);
     if (at.test(8))
     {
         if (!at.test(16))
         {
             return;
         }
         at.set(6, true);
         at.set(17, true);
         at.set(16, false);
         this.m_counter = -1;
     }
     else if (at.test(10))
     {
         if (!at.test(14) || !at.test(1) || at.test(17))
         {
             return;
         }
         if (0 < this.m_wc_time)
         {
             at.set(4, true);
             at.set(16, true);
             this.m_counter = this.m_wc_time;
         }
         else
         {
             at.set(4, true);
             at.set(5, true);
         }
     }
     else
     {
         if (at.test(0))
         {
             return;
         }
         if (at.test(16) && this.m_counter == 0)
         {
             at.set(5, true);
             at.set(16, false);
         }
         if (!this.m_state[1].test(10))
         {
             return;
         }
         at.set(17, false);
     }
 }
 // Token: 0x06002A82 RID: 10882 RVA: 0x0015A768 File Offset: 0x00158968
 private void updateRepeat()
 {
     CTrgState.CBitset at = this.m_state.getAt(0);
     if (at.test(2))
     {
         at.set(7, true);
         this.m_counter = this.m_repeat_interval.first;
         return;
     }
     if (at.test(3))
     {
         this.m_counter = -1;
         return;
     }
     if (at.test(0) && this.m_counter == 0)
     {
         at.set(7, true);
         this.m_counter = this.m_repeat_interval.second;
     }
 }
Exemplo n.º 6
0
 private void updateRepeat()
 {
     CTrgState.CBitset at = this.m_state.getAt(0);
     if (at.test(2))
     {
         at.set(7, true);
         this.m_counter = this.m_repeat_interval.first;
     }
     else if (at.test(3))
     {
         this.m_counter = -1;
     }
     else
     {
         if (!at.test(0) || this.m_counter != 0)
         {
             return;
         }
         at.set(7, true);
         this.m_counter = this.m_repeat_interval.second;
     }
 }
Exemplo n.º 7
0
 private void updateMoveOver(IntPair move)
 {
     CTrgState.CBitset at = this.m_state.getAt(0);
     if (at.test(2))
     {
         at.set(12, true);
         if (at.test(14))
         {
             at.set(9, true);
         }
         if (!this.m_state[1].test(14))
         {
             this.resetMove();
         }
     }
     else if (at.test(0))
     {
         if (this.addMove(move))
         {
             at.set(12, true);
             if (at.test(14))
             {
                 at.set(9, true);
                 at.set(15, true);
             }
         }
     }
     else if (at.test(14) && this.addMove(move))
     {
         at.set(9, true);
         at.set(15, true);
     }
     if (!this.m_state[1].test(10))
     {
         return;
     }
     at.set(15, false);
 }