Blame |
Last modification |
View Log
| RSS feed
package com.gebauz.bauzoid.math.collision;
import java.util.Vector;
import com.gebauz.bauzoid.graphics.sprite.SpriteTransform;
/** Collection of shape elements that form a complex shape. */
public class Shape
{
// Constants========================================================================================
// Embedded Types===================================================================================
// Fields===========================================================================================
private Vector<BaseShapeElement
> mShapes =
new Vector<BaseShapeElement
>();
public SpriteTransform transform =
new SpriteTransform
();
// Methods==========================================================================================
public Shape()
{
}
public void addElement
(BaseShapeElement shapeElement
)
{
mShapes.
add(shapeElement
);
}
// Getters/Setters==================================================================================
public final BaseShapeElement getShapeElement
(int i
)
{
return mShapes.
get(i
);
}
public final int getShapeElementCount
()
{
return mShapes.
size();
}
}