T
- The entity enum type used.C
- The cost type used.public class Producible<T extends java.lang.Enum<T>,C extends ProductionCostRts>
extends java.lang.Object
implements com.b3dgs.lionengine.game.Tiled
Constructor and Description |
---|
Producible(T id,
C cost,
int tw,
int th)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
C |
getCost()
Get the cost.
|
int |
getHeightInTile() |
T |
getId()
Get the id.
|
int |
getLocationInTileX() |
int |
getLocationInTileY() |
int |
getWidthInTile() |
void |
setLocation(int tx,
int ty)
Set the production location.
|
public void setLocation(int tx, int ty)
tx
- The horizontal location.ty
- The vertical location.public T getId()
public C getCost()
public int getLocationInTileX()
getLocationInTileX
in interface com.b3dgs.lionengine.game.Tiled
public int getLocationInTileY()
getLocationInTileY
in interface com.b3dgs.lionengine.game.Tiled
public int getWidthInTile()
getWidthInTile
in interface com.b3dgs.lionengine.game.Tiled
public int getHeightInTile()
getHeightInTile
in interface com.b3dgs.lionengine.game.Tiled