示例#1
0
 public c00021a(c000240 p0)
     : base(p0)
 {
     this.f000001 = enum021b.f000044;
     this.f000031 = 1360f;
     this.f000033 = 768f;
     this.f000035 = 0.5f;
     this.f00008e = new c00023c();
     this.f000017 = p0;
     this.f000019 = new c000228(this.f000017);
 }
示例#2
0
        public override void m000050(GameTime p0)
        {
            float totalMilliseconds = (float) p0.ElapsedGameTime.TotalMilliseconds;
            if (this.f000017.m000062() == enum023f.f00006d)
            {
                if (this.f00000a)
                {
                    return;
                }
                float num2 = totalMilliseconds * this.f000035;
                Vector2 zero = Vector2.Zero;
                switch (this.f000001)
                {
                    case enum021b.f000001:
                        zero.X = num2;
                        break;

                    case enum021b.f000043:
                        zero.Y = num2;
                        break;

                    case enum021b.f000044:
                        zero.X = -num2;
                        break;

                    case enum021b.f000045:
                        zero.Y = -num2;
                        break;
                }
                this.f00013c.m000023(this.f00013c.m000022() + zero);
                this.f0001ab.m000023(this.f0001ab.m000022() + zero);
                switch (this.f000001)
                {
                    case enum021b.f000001:
                        if (this.f00013c.m000022().X >= this.f000031)
                        {
                            this.f00000a = true;
                            if (this.f00003e.Count != 8)
                            {
                                if (this.f00000b == 0)
                                {
                                    this.f000001 = enum021b.f000044;
                                }
                                break;
                            }
                            if (this.f00000b == 6)
                            {
                                this.f000001 = enum021b.f000045;
                            }
                        }
                        break;

                    case enum021b.f000043:
                        if (this.f00013c.m000022().Y >= this.f000033)
                        {
                            this.f00000a = true;
                            if (this.f00000b == 4)
                            {
                                this.f000001 = enum021b.f000001;
                            }
                        }
                        break;

                    case enum021b.f000044:
                        if (this.f00013c.m000022().X <= -this.f000031)
                        {
                            this.f00000a = true;
                            if (this.f00003e.Count != 8)
                            {
                                if (this.f00000b == (this.f00003e.Count - 1))
                                {
                                    this.f000001 = enum021b.f000001;
                                }
                                break;
                            }
                            if (this.f00000b == 2)
                            {
                                this.f000001 = enum021b.f000043;
                            }
                        }
                        break;

                    case enum021b.f000045:
                        if (this.f00013c.m000022().Y <= -this.f000033)
                        {
                            this.f00000a = true;
                            if (this.f00000b == 0)
                            {
                                this.f000001 = enum021b.f000044;
                            }
                        }
                        break;
                }
                this.f00008e.m000023(zero);
                if (this.f00000a)
                {
                    zero = -this.f0001ab.m000022();
                    this.f00008e.m000023(zero);
                    this.f00008e.m000003();
                    this.f00013c.m000047();
                    this.f00013c.m000030(this.f0001ab.m00002f());
                    this.f00013c.m000023(Vector2.Zero);
                }
            }
            this.m000029(totalMilliseconds);
            this.f000019.m000025(totalMilliseconds);
        }