Skip to content

Commit d2ecb79

Browse files
committed
fix(sdk): Line width is now a double.
1 parent c1b748a commit d2ecb79

File tree

1 file changed

+6
-6
lines changed
  • engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities

1 file changed

+6
-6
lines changed

engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities/Shape.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010
public abstract class Shape<T extends BlendableEntity<?>> extends BlendableEntity<T> implements Mask {
1111

12-
private int lineColor = 0x0, lineWidth = 0, fillColor = 0xffffff;
13-
private double fillAlpha = 1, lineAlpha = 1;
12+
private int lineColor = 0x0, fillColor = 0xffffff;
13+
private double fillAlpha = 1, lineAlpha = 1, lineWidth = 0;
1414

1515
Shape() {
1616
super();
@@ -150,7 +150,7 @@ public double getLineAlpha() {
150150
* the width for the border of this <code>Shape</code>.
151151
* @return this <code>Shape</code>.
152152
*/
153-
public T setLineWidth(int lineWidth) {
153+
public T setLineWidth(double lineWidth) {
154154
return setLineWidth(lineWidth, null);
155155
}
156156

@@ -166,7 +166,7 @@ public T setLineWidth(int lineWidth) {
166166
* the transition to animate between values of this property.
167167
* @return this <code>Shape</code>.
168168
*/
169-
public T setLineWidth(int lineWidth, Curve curve) {
169+
public T setLineWidth(double lineWidth, Curve curve) {
170170
this.lineWidth = lineWidth;
171171
set("lineWidth", lineWidth, curve);
172172
return self();
@@ -175,11 +175,11 @@ public T setLineWidth(int lineWidth, Curve curve) {
175175
/**
176176
* Returns the width of the border of this <code>Shape</code> in world units.
177177
* <p>
178-
* Default is 1.
178+
* Default is 0.
179179
*
180180
* @return the width of the border of this <code>Shape</code>.
181181
*/
182-
public int getLineWidth() {
182+
public double getLineWidth() {
183183
return lineWidth;
184184
}
185185

0 commit comments

Comments
 (0)