T
- The entity enum type used.C
- The cost type used.public class Producible<T extends Enum<T>,C extends ProductionCostStrategy> extends Object implements 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 Tiled
public int getLocationInTileY()
getLocationInTileY
in interface Tiled
public int getWidthInTile()
getWidthInTile
in interface Tiled
public int getHeightInTile()
getHeightInTile
in interface Tiled
Copyright © 2014 Byron 3D Games Studio. All rights reserved.