In my Ground class (subclass of World), I have a define variable which is 'private static final int CELL_SIZE = 20;'
I want to use this variable in two of my subclasses of Actor. How can I do this?
int cellsize = Ground.CELL_SIZE;
public static int getCellSize()
{
return CELL_SIZE;
}int cellsize = Ground.getCellSize();