Module: RuneRb::Game::Map::Constants

Included in:
RuneRb::Game::Map, Direction
Defined in:
app/game/map/constants.rb

Overview

A collection of Map Constants

Since:

  • 0.9.3

Constant Summary collapse

NONE =

Since:

  • 0.9.3

-1
NORTH_WEST =

Since:

  • 0.9.3

0
NORTH =

Since:

  • 0.9.3

1
NORTH_EAST =

Since:

  • 0.9.3

2
WEST =

Since:

  • 0.9.3

3
EAST =

Since:

  • 0.9.3

4
SOUTH_WEST =

Since:

  • 0.9.3

5
SOUTH =

Since:

  • 0.9.3

6
SOUTH_EAST =

Since:

  • 0.9.3

7
DIRECTIONS =

Since:

  • 0.9.3

{ NONE: NONE,
NORTH_WEST: NORTH_WEST,
NORTH: NORTH,
NORTH_EAST: NORTH_EAST,
WEST: WEST,
EAST: EAST,
SOUTH_WEST: SOUTH_WEST,
SOUTH: SOUTH,
SOUTH_EAST: SOUTH_EAST }.freeze
NESW =

Since:

  • 0.9.3

[NORTH, EAST, SOUTH, WEST].freeze
WNES =

Since:

  • 0.9.3

[WEST, NORTH, EAST, SOUTH].freeze
WNES_DIAGONAL =

Since:

  • 0.9.3

[NORTH_WEST, NORTH_EAST, SOUTH_EAST, SOUTH_WEST].freeze
DEFAULT_POSITION =

Since:

  • 0.9.3

[RuneRb::GLOBAL[:DEFAULT_MOB_X] || 3222, RuneRb::GLOBAL[:DEFAULT_MOB_Y] || 3222, RuneRb::GLOBAL[:DEFAULT_MOB_Z] || 0].freeze
REGION_TILE_LENGTH =

Since:

  • 0.9.3

8
VIEWABLE_REGION_RADIUS =

Since:

  • 0.9.3

3
VIEWPORT_WIDTH =

Since:

  • 0.9.3

REGION_TILE_LENGTH * 13
X_DELTAS =

Since:

  • 0.9.3

[-1, 0, 1, -1, 1, -1, 0, 1].freeze
Y_DELTAS =

Since:

  • 0.9.3

[1, 1, 1, 0, 0, -1, -1, -1].freeze