Пример #1
0
 protected void renderChildren(IGraphicsWrapper graphics, int offX, int offY)
     throws SlickException {
   this.childrenCopy.clear();
   this.childrenCopy.addAll(this.children);
   for (final IScreenElement element : this.childrenCopy) {
     element.render(graphics, offX + this.x, offY + this.y);
   }
 }
Пример #2
0
 @Override
 public void addChild(IScreenElement element) {
   this.children.add(element);
   element.setParent(this);
 }