Java 类com.badlogic.gdx.math.Shape2D 实例源码

项目:Entitas-Java    文件:CoreEntity.java   
public CoreEntity addView(Shape2D shape) {
    View component = (View) recoverComponent(CoreComponentsLookup.View);
    if (component == null) {
        component = new View(shape);
    } else {
        component.shape = shape;
    }
    addComponent(CoreComponentsLookup.View, component);
    return this;
}
项目:Entitas-Java    文件:CoreEntity.java   
public CoreEntity replaceView(Shape2D shape) {
    View component = (View) recoverComponent(CoreComponentsLookup.View);
    if (component == null) {
        component = new View(shape);
    } else {
        component.shape = shape;
    }
    replaceComponent(CoreComponentsLookup.View, component);
    return this;
}
项目:penguins-in-space    文件:CircularBoundsComponent.java   
@Override
public Shape2D getBounds() {
    return bounds;
}
项目:penguins-in-space    文件:RectangularBoundsComponent.java   
@Override
public Shape2D getBounds() {
    return bounds;
}
项目:Entitas-Java    文件:View.java   
public View(Shape2D shape) {
    this.shape = shape;
}
项目:feup-lpoo-armadillo    文件:ShapeModel.java   
/**
 * Constructor for a ShapeModel.
 *
 * @param type  The model's type.
 * @param shape The model's shape.
 */
ShapeModel(ModelType type, Shape2D shape) {
    this.type = type;
    this.shape = shape;
}
项目:feup-lpoo-armadillo    文件:ShapeModel.java   
/**
 * Getter for the model's shape.
 *
 * @return this model's shape.
 */
public Shape2D getShape() {
    return shape;
}
项目:penguins-in-space    文件:BoundsComponent.java   
public abstract Shape2D getBounds();