public abstract static class Chain.CopyBuilder extends java.lang.Object implements Chain.Builder
| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.physics.box2d.Body |
template
|
| Constructor and Description |
|---|
CopyBuilder(com.badlogic.gdx.physics.box2d.Body template) |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.physics.box2d.Body |
createSegment(int index,
int length,
Chain chain)
creates a segment that is going to be added to
Chain.segments |
com.badlogic.gdx.physics.box2d.Body |
getTemplate() |
void |
setTemplate(com.badlogic.gdx.physics.box2d.Body template) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateConnectionpublic CopyBuilder(com.badlogic.gdx.physics.box2d.Body template)
template - the templatepublic com.badlogic.gdx.physics.box2d.Body createSegment(int index,
int length,
Chain chain)
Chain.BuilderChain.segmentscreateSegment in interface Chain.Builderindex - the index of the segment to createlength - the desired length of the Chain that is being buildchain - the Chain this segment will be added tocopy of templatepublic com.badlogic.gdx.physics.box2d.Body getTemplate()
templatepublic void setTemplate(com.badlogic.gdx.physics.box2d.Body template)
template - the template to set