public class FovableModel extends TraitModel implements Fovable
The ObjectGame
owner must have the following Trait
:
The Services
must provide the following services:
Constructor and Description |
---|
FovableModel()
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(ObjectGame owner,
Services services)
Prepare the trait.
|
void |
setFov(int fov)
Set the field of view value (in tile).
|
getOwner
public void prepare(ObjectGame owner, Services services)
Trait
prepare
in interface Trait
prepare
in class TraitModel
owner
- The owner reference.services
- The services 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 © 2016 Byron 3D Games Studio. All rights reserved.