public WaitSprite(int s, int w, int h) { this.style = s; this.wait = new WaitSprite.DrawWait(s, w, h); this.delay = new LTimer(120); this.alpha = 1.0F; this.visible = true; if (s > 1) { int width_0 = w / 2; int height_1 = h / 2; cycle = NewSample(s - 2, width_0, height_1); RectBox limit = cycle.GetCollisionBox(); SetLocation( (w - ((limit.GetWidth() == 0) ? (float)(20) : (float)(limit.GetWidth()))) / 2, (h - ((limit.GetHeight() == 0) ? (float)(20) : (float)(limit.GetHeight()))) / 2); } Update(0); }