API Docs for: 0.1.1
Show:

flatworld.extensions.hexagons.ObjectHexaTerrain Class

Terrain tile like desert or mountain, non-movable and cacheable. Normally, but not necessarily, these are inherited, depending on the map type. For example you might want to add some click area for these

Constructor

flatworld.extensions.hexagons.ObjectHexaTerrain

(
  • coords
  • data
  • options
)

Parameters:

  • coords Object
    • x Integer

      X coordinate

    • y Integer

      Y coordinate

  • data Object

    This units custom data

  • options Object

    options.radius REQUIRED.

    • radius Number

      REQUIRED. This is the radius of the game maps hexagon.

Item Index