public class FovableModel extends FeatureModel implements Fovable
Constructor and Description |
---|
FovableModel(Services services)
Create a fovable model.
|
Modifier and Type | Method and Description |
---|---|
int |
getInTileFov()
Get the field of view in tile.
|
int |
getInTileHeight()
Get the height in tile.
|
int |
getInTileWidth()
Get the width in tile.
|
int |
getInTileX()
Get horizontal tile location.
|
int |
getInTileY()
Get vertical tile location.
|
void |
prepare(FeatureProvider provider)
Prepare the feature.
|
void |
setFov(int fov)
Set the field of view value (in tile).
|
checkListener, getFeature, getFeatures, getFeaturesType, hasFeature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkListener
getFeature, getFeatures, getFeaturesType, hasFeature
public FovableModel(Services services)
services
- The services reference.public void prepare(FeatureProvider provider)
Feature
Featurable.addFeature(Feature)
or
Featurable.addFeatureAndGet(Feature)
.prepare
in interface Feature
prepare
in class FeatureModel
provider
- The owner reference.public void setFov(int fov)
Fovable
public int getInTileX()
Tiled
getInTileX
in interface Tiled
public int getInTileY()
Tiled
getInTileY
in interface Tiled
public int getInTileWidth()
Tiled
getInTileWidth
in interface Tiled
public int getInTileHeight()
Tiled
getInTileHeight
in interface Tiled
public int getInTileFov()
Fovable
getInTileFov
in interface Fovable
Copyright © 2017 Byron 3D Games Studio. All rights reserved.