Constructor and Description |
---|
TileStrategy(int width,
int height,
Integer pattern,
int number,
C collision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract R |
checkResourceType(C collision)
Check resource type from collision.
|
R |
getResourceType()
Get the resource type.
|
abstract boolean |
hasResources()
Check if tile has resources.
|
void |
setResourceType(R type)
Set the resource type.
|
checkBlocking, isBlocking, setBlocking
getBottom, getCollision, getHeight, getLeft, getNumber, getPattern, getRight, getTop, getWidth, getX, getY, setCollision, setNumber, setPattern, setX, setY
public abstract R checkResourceType(C collision)
collision
- The tile collision.public abstract boolean hasResources()
true
if has resources, false
else.public void setResourceType(R type)
type
- The resource type.public R getResourceType()
null
if none).Copyright © 2014 Byron 3D Games Studio. All rights reserved.