add final to variables
This commit is contained in:
parent
2624277302
commit
54c4937b8a
1 changed files with 3 additions and 4 deletions
|
@ -1,21 +1,20 @@
|
||||||
package com.monjaro.gamejam;
|
package com.monjaro.gamejam;
|
||||||
|
|
||||||
import com.badlogic.gdx.math.Rectangle;
|
|
||||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||||
|
import com.badlogic.gdx.math.Rectangle;
|
||||||
|
|
||||||
import javax.print.attribute.standard.PrinterIsAcceptingJobs;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class Die extends Actor {
|
public class Die extends Actor {
|
||||||
|
|
||||||
private Rectangle shape;
|
private final Rectangle shape;
|
||||||
/*
|
/*
|
||||||
0
|
0
|
||||||
1 2 3 4
|
1 2 3 4
|
||||||
5
|
5
|
||||||
*/
|
*/
|
||||||
private Face[] faces = new Face[6];
|
private final Face[] faces = new Face[6];
|
||||||
private int faceIndex = 3;
|
private int faceIndex = 3;
|
||||||
|
|
||||||
private final Random random = new Random(); //TODO use central random
|
private final Random random = new Random(); //TODO use central random
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue