示例#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));
  }
示例#2
0
 public void setVisible(boolean visible) {
   this.visible = visible;
   Boolean value = this.visible;
   SignalSlotMap.fastEmit(this, SIGNAL_VISIBLE_CHANGED, value);
   value = null;
 }
示例#3
0
 public void setDrawOrder(int drawOrder) {
   this.drawOrder = drawOrder;
   Integer value = this.drawOrder;
   SignalSlotMap.fastEmit(this, SIGNAL_DRAW_ORDER_CHANGED, value);
   value = null;
 }