Ejemplo n.º 1
0
  public DrawableGameComponent() {
    super();
    this.drawOrder = 0;
    this.visible = true;

    this.initialize();
    // this.loadContent();

    SignalSlotMap.fastConnect(
        this,
        SIGNAL_DRAW_ORDER_CHANGED,
        SlotProviderMethodPair.create(this, "onDrawOrderChanged", Integer.class));
    SignalSlotMap.fastConnect(
        this,
        SIGNAL_VISIBLE_CHANGED,
        SlotProviderMethodPair.create(this, "onVisibleChanged", Boolean.class));
  }
Ejemplo n.º 2
0
 public void setVisible(boolean visible) {
   this.visible = visible;
   Boolean value = this.visible;
   SignalSlotMap.fastEmit(this, SIGNAL_VISIBLE_CHANGED, value);
   value = null;
 }
Ejemplo n.º 3
0
 public void setDrawOrder(int drawOrder) {
   this.drawOrder = drawOrder;
   Integer value = this.drawOrder;
   SignalSlotMap.fastEmit(this, SIGNAL_DRAW_ORDER_CHANGED, value);
   value = null;
 }