コード例 #1
0
ファイル: Entity.java プロジェクト: ColePillars/One4All
  @Override
  public void attachChild(final IEntity pEntity) throws IllegalStateException {
    this.assertEntityHasNoParent(pEntity);

    if (this.mChildren == null) {
      this.allocateChildren();
    }
    this.mChildren.add(pEntity);
    pEntity.setParent(this);
    pEntity.onAttached();
  }
コード例 #2
0
ファイル: Entity.java プロジェクト: ColePillars/One4All
 @Override
 public void call(final IEntity pEntity) {
   pEntity.setParent(null);
   pEntity.onDetached();
 }