RuneHive-Game
Loading...
Searching...
No Matches
TraversalConstants.java
Go to the documentation of this file.
1package com.runehive.game.world.pathfinding;
2
3/**
4 * Represents flags for each of the traversals.
5 *
6 * @author Ryley Kimmel <ryley.kimmel@live.com>
7 * @author Artem Batutin <artembatutin@gmail.com>
8 */
9public final class TraversalConstants {
10
11 /** The flag which denotes a normal tile, no flag. */
12 public static final int NONE = 0x0;
13
14 /** The flag which denotes a bridge tile. */
15 public static final int BRIDGE = 0x40000;
16
17 /** The flag which denotes a blocked tile. */
18 public static final int BLOCKED = 0x200000;
19
20 /** The flag for a north facing wall. */
21 public static final int WALL_NORTH = 0x2;
22
23 /** The flag for a south facing wall. */
24 public static final int WALL_SOUTH = 0x20;
25
26 /** The flag for a east facing wall. */
27 public static final int WALL_EAST = 0x8;
28
29 /** The flag for a west facing wall. */
30 public static final int WALL_WEST = 0x80;
31
32 /** The flag for a north east facing wall. */
33 public static final int WALL_NORTH_EAST = 0x4;
34
35 /** The flag for a north west facing wall. */
36 public static final int WALL_NORTH_WEST = 0x1;
37
38 /** The flag for a south east facing wall. */
39 public static final int WALL_SOUTH_EAST = 0x10;
40
41 /** The flag for a south west facing wall. */
42 public static final int WALL_SOUTH_WEST = 0x40;
43
44 /** The flag for an object occupant, which is impenetrable. */
45 public static final int IMPENETRABLE_BLOCKED = 0x20000;
46
47 /** The flag for a impenetrable north facing wall. */
48 public static final int IMPENETRABLE_WALL_NORTH = 0x400;
49
50 /** The flag for a impenetrable south facing wall. */
51 public static final int IMPENETRABLE_WALL_SOUTH = 0x4000;
52
53 /** The flag for a impenetrable east facing wall. */
54 public static final int IMPENETRABLE_WALL_EAST = 0x1000;
55
56 /** The flag for a impenetrable west facing wall. */
57 public static final int IMPENETRABLE_WALL_WEST = 0x10000;
58
59 /** The flag for a impenetrable north east facing wall. */
60 public static final int IMPENETRABLE_WALL_NORTH_EAST = 0x800;
61
62 /** The flag for a impenetrable north west facing wall. */
63 public static final int IMPENETRABLE_WALL_NORTH_WEST = 0x200;
64
65 /** The flag for a impenetrable south east facing wall. */
66 public static final int IMPENETRABLE_WALL_SOUTH_EAST = 0x2000;
67
68 /** The flag for a impenetrable south west facing wall. */
69 public static final int IMPENETRABLE_WALL_SOUTH_WEST = 0x8000;
70
71 /**
72 * Suppresses the default-public constructor preventing this class from
73 * being instantiated by other classes.
74 *
75 * @throws UnsupportedOperationException If this class is instantiated
76 * within itself.
77 */
79 throw new UnsupportedOperationException("constant-container classes may not be instantiated.");
80 }
81
82}
static final int IMPENETRABLE_BLOCKED
The flag for an object occupant, which is impenetrable.
static final int IMPENETRABLE_WALL_SOUTH_WEST
The flag for a impenetrable south west facing wall.
static final int BLOCKED
The flag which denotes a blocked tile.
static final int WALL_EAST
The flag for a east facing wall.
static final int IMPENETRABLE_WALL_SOUTH_EAST
The flag for a impenetrable south east facing wall.
static final int WALL_NORTH
The flag for a north facing wall.
static final int IMPENETRABLE_WALL_WEST
The flag for a impenetrable west facing wall.
static final int IMPENETRABLE_WALL_EAST
The flag for a impenetrable east facing wall.
static final int NONE
The flag which denotes a normal tile, no flag.
TraversalConstants()
Suppresses the default-public constructor preventing this class from being instantiated by other clas...
static final int WALL_NORTH_WEST
The flag for a north west facing wall.
static final int IMPENETRABLE_WALL_NORTH_EAST
The flag for a impenetrable north east facing wall.
static final int WALL_WEST
The flag for a west facing wall.
static final int WALL_SOUTH
The flag for a south facing wall.
static final int WALL_NORTH_EAST
The flag for a north east facing wall.
static final int BRIDGE
The flag which denotes a bridge tile.
static final int IMPENETRABLE_WALL_NORTH_WEST
The flag for a impenetrable north west facing wall.
static final int WALL_SOUTH_WEST
The flag for a south west facing wall.
static final int IMPENETRABLE_WALL_NORTH
The flag for a impenetrable north facing wall.
static final int IMPENETRABLE_WALL_SOUTH
The flag for a impenetrable south facing wall.
static final int WALL_SOUTH_EAST
The flag for a south east facing wall.