public class AttributesStairs extends AttributesEmbedShape
Stairs objects.
The attributes "treads" specifies how many treads the stair should be comprised of, counting only
the small platforms that are NOT on the ground or on the next floor.
Upward direction specifies in which direction the treads should head toward. This way a polygon
can also be used.
Upward direction must not be normalized (it will be normalized to 1.0 in the constructor).| Modifier and Type | Field and Description |
|---|---|
private int |
id |
private org.vadere.util.geometry.shapes.VShape |
shape |
private int |
treadCount |
private org.vadere.util.geometry.shapes.Vector2D |
upwardDirection |
ID_NOT_SET| Constructor and Description |
|---|
AttributesStairs() |
AttributesStairs(int id) |
AttributesStairs(int id,
org.vadere.util.geometry.shapes.VShape shape,
int treadCount,
org.vadere.util.geometry.shapes.Vector2D upwardDirection) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
org.vadere.util.geometry.shapes.VShape |
getShape() |
int |
getTreadCount() |
org.vadere.util.geometry.shapes.Vector2D |
getUpwardDirection() |
void |
setId(int id) |
void |
setShape(org.vadere.util.geometry.shapes.VShape shape) |
clonecheckSealed, sealprivate org.vadere.util.geometry.shapes.VShape shape
private int id
private int treadCount
private org.vadere.util.geometry.shapes.Vector2D upwardDirection
public AttributesStairs()
public AttributesStairs(int id)
public AttributesStairs(int id,
org.vadere.util.geometry.shapes.VShape shape,
int treadCount,
org.vadere.util.geometry.shapes.Vector2D upwardDirection)
public void setShape(org.vadere.util.geometry.shapes.VShape shape)
setShape in class AttributesEmbedShapepublic org.vadere.util.geometry.shapes.VShape getShape()
getShape in class AttributesEmbedShapepublic int getId()
public int getTreadCount()
public org.vadere.util.geometry.shapes.Vector2D getUpwardDirection()
public void setId(int id)