Options
All
  • Public
  • Public/Protected
  • All
Menu

Module model/terrain

Interfaces

Type aliases

Object literals

Type aliases

TerrainType

TerrainType: "EMPTY" | "COMMON" | "UNCOMMON" | "RARE" | "OBSTACLE" | "BARRIER"

Types of terrain which creates the game map. All can be walked over except OBSTACLE and BARRIER, resource can be mined on COMMON, UNCOMMON and RARE.

Object literals

Const TerrainData

TerrainData: object

Constant data defining the terrain types

BARRIER

BARRIER: object

description

description: string = "Unfortunately, you can't swim."

minable

minable: false = false

name

name: string = "Lake"

walkable

walkable: false = false

COMMON

COMMON: object

amount

amount: number = config.game.COMMON_AMOUNT

description

description: string = "There is a lot of them and it can be mined very quickly."

minable

minable: true = true

name

name: string = "Pink gem"

walkable

walkable: true = true

EMPTY

EMPTY: object

description

description: string = "Nothing interesting here."

minable

minable: false = false

name

name: string = "Grass"

walkable

walkable: true = true

OBSTACLE

OBSTACLE: object

description

description: string = "You can't just walk through it."

minable

minable: false = false

name

name: string = "Tree"

walkable

walkable: false = false

RARE

RARE: object

amount

amount: number = config.game.RARE_AMOUNT

description

description: string = "Very rare and hard to mine, but they are huge."

minable

minable: true = true

name

name: string = "Golden gem"

walkable

walkable: true = true

UNCOMMON

UNCOMMON: object

amount

amount: number = config.game.UNCOMMON_AMOUNT

description

description: string = "They are harder to find and take some time to be mined."

minable

minable: true = true

name

name: string = "Blue gem"

walkable

walkable: true = true

Generated using TypeDoc