Exemplo n.º 1
0
        public void m000050(GameTime p0)
        {
            if (this.f000059 != enum0218.f000209)
            {
                float totalMilliseconds = (float) p0.ElapsedGameTime.TotalMilliseconds;
                switch (this.f000059)
                {
                    case enum0218.f000059:
                        if (this.f00013c.m000008())
                        {
                            c000067 c = this.f00013c.m00002f().m00009f()[1];
                            this.f00013c.m00002f().m00029c(c);
                            this.f00013c.m00002f().m000090(0);
                            this.f000059 = enum0218.f000204;
                        }
                        return;

                    case enum0218.f000204:
                        for (int i = 0; i < 3; i++)
                        {
                            if (this.f00020a[i].m000024() < 1f)
                            {
                                c000244 local1 = this.f00020a[i];
                                local1.m000025(local1.m000024() + (totalMilliseconds * 0.003f));
                                return;
                            }
                        }
                        this.f000059 = enum0218.f000205;
                        this.f0001ab.m000023(new Vector2(330f, 310f));
                        this.f0001ab.m00002f().m000356(true);
                        this.f000031 = 0f;
                        return;

                    case enum0218.f000205:
                        this.f000031 += totalMilliseconds;
                        if (this.f000031 <= 20000f)
                        {
                            Vector2 vector = this.f000038.m0000a3().m00029f().m000022();
                            if ((this.f0001ab.m000022().X < 170f) && (vector.X < 0f))
                            {
                                vector.X = 0f;
                            }
                            if ((this.f0001ab.m000022().X > 540f) && (vector.X > 0f))
                            {
                                vector.X = 0f;
                            }
                            if ((this.f0001ab.m000022().Y > 310f) && (vector.Y > 0f))
                            {
                                vector.Y = 0f;
                            }
                            if ((this.f0001ab.m000022().Y < 165f) && (vector.Y < 0f))
                            {
                                vector.Y = 0f;
                            }
                            this.f0001ab.m000023(this.f0001ab.m000022() + ((Vector2) (vector * 5f)));
                            c000244 c2 = null;
                            for (int j = 0; j < this.f00020a.Count; j++)
                            {
                                c000075 c3 = this.f00020a[j].m00002f();
                                if (this.f0001ab.m00002f().m00039e(c3))
                                {
                                    c2 = this.f00020a[j];
                                    break;
                                }
                            }
                            if (this.f000026 != c2)
                            {
                                if (this.f000026 != null)
                                {
                                    this.f000026.m00004c(false);
                                }
                                if (c2 != null)
                                {
                                    c2.m00004c(true);
                                }
                                this.f000026 = c2;
                            }
                            if ((this.f000026 != null) && this.f000038.m0000a3().m00029f().m000008())
                            {
                                this.m000047();
                            }
                            return;
                        }
                        this.m000047();
                        return;

                    case enum0218.f000206:
                        if (this.f000026.m000008())
                        {
                            for (int k = 0; k < 3; k++)
                            {
                                if ((this.f000026 != this.f00020a[k]) && !this.f00020a[k].m000008())
                                {
                                    this.f00020a[k].m000029(totalMilliseconds);
                                    return;
                                }
                            }
                            this.f000059 = enum0218.f000207;
                            return;
                        }
                        this.f000026.m000029(totalMilliseconds);
                        if (this.f000026.m000008())
                        {
                            c000213 c4 = this.f000017.m00029f();
                            int num4 = this.f000026.m00000f();
                            c4.m0002de(0, num4, this.f000038.m0000a3().m000035(this.f000026.m000022()), this.f000038.m000062().m000024(), this.f000038.m000026());
                            this.f000038.m000030(enum0273.f000038);
                            this.f000038.m0000a3().m00029f().m00009c().m0002d2(c000274.m0002fd(enum0273.f000038) - num4);
                            this.f000038.m0002d9(num4);
                            c4.m000004(num4);
                        }
                        return;

                    case enum0218.f000207:
                        for (int m = 0; m < 3; m++)
                        {
                            if (this.f00020a[m].m000024() > 0f)
                            {
                                c000244 local2 = this.f00020a[m];
                                local2.m000025(local2.m000024() - (totalMilliseconds * 0.003f));
                                return;
                            }
                        }
                        if (this.f00013c.m00002f().m00000f() != 2)
                        {
                            bool flag = true;
                            for (int n = 0; n < 3; n++)
                            {
                                if ((this.f00020a[n] != this.f000026) && !this.f00020a[n].m0002f1(totalMilliseconds))
                                {
                                    flag = false;
                                }
                            }
                            if (flag)
                            {
                                c000067 c5 = this.f00013c.m00002f().m00009f()[2];
                                this.f00013c.m00002f().m00029c(c5);
                                this.f00013c.m00002f().m000090(0);
                            }
                        }
                        if (this.f00013c.m000008())
                        {
                            this.f000059 = enum0218.f000208;
                            this.f00013c.m00002f().m000356(false);
                        }
                        return;

                    case enum0218.f000208:
                        if (this.f000026.m0002f1(totalMilliseconds))
                        {
                            for (int num8 = 0; num8 < 3; num8++)
                            {
                                this.f00020a[num8].m000047();
                            }
                            this.f00013c.m000047();
                            this.f0001ab.m000047();
                            this.f000059 = enum0218.f000209;
                        }
                        return;
                }
            }
        }
Exemplo n.º 2
0
 private void m000047()
 {
     if (this.f000026 == null)
     {
         for (int j = 0; j < 3; j++)
         {
             if (this.f00020a[j].m00000f() != c000274.m0002fd(enum0273.f000038))
             {
                 this.f000026 = this.f00020a[j];
                 this.f000026.m00004c(true);
                 break;
             }
         }
     }
     this.f0001ab.m00002f().m000356(false);
     this.f000059 = enum0218.f000206;
     for (int i = 0; i < 3; i++)
     {
         this.f00020a[i].m000003();
     }
 }
Exemplo n.º 3
0
 public void m000003()
 {
     this.f000059 = enum0218.f000059;
     c000066 c = c000031.m000056(f00003e, 0.03f);
     this.f00013c.m000030(c000031.m000054(c));
     this.f00013c.m00002f().m000143(1.5f);
     for (int i = 0; i < 3; i++)
     {
         int num2 = c000074.m0000d3().Next(3);
         int num3 = c000074.m0000d3().Next(3);
         int num4 = this.f00020a[num2].m00000f();
         this.f00020a[num2].m00004b(this.f00020a[num3].m00000f());
         this.f00020a[num3].m00004b(num4);
     }
     for (int j = 0; j < 3; j++)
     {
         this.f00020a[j].m000001();
         this.f00020a[j].m000025(0f);
     }
     this.f0001ab.m000030(c000031.m000052(@"Image\pearl\hand"));
     this.f0001ab.m00002f().m000143(2.5f);
     this.f0001ab.m00002f().m000356(false);
     c000047 c2 = new c000047();
     IList<struct055> list = new List<struct055>();
     list.Add(new struct055(-60f, 5f));
     list.Add(new struct055(0f, 5f));
     list.Add(new struct055(0f, 50f));
     list.Add(new struct055(-60f, 50f));
     list.Add(new struct055(-60f, 5f));
     c2.m000048(list);
     this.f0001ab.m00002f().m0002e4(c2);
     this.f000026 = null;
 }