@Override public void resizeBoundingBox(boolean flag) { EntitySize es = this.getClass().getAnnotation(EntitySize.class); if (es != null) { this.setSize(flag ? (es.width() / 2) : es.width(), flag ? (es.height() / 2) : es.height()); } }
@Override public void resetEntitySize() { EntitySize es = this.getClass().getAnnotation(EntitySize.class); if (es != null) { this.setSize(es.width(), es.height()); } }
protected void setSize() { EntitySize es = this.getClass().getAnnotation(EntitySize.class); if (es != null) { this.setSize(es.width(), es.height()); } }