RuneHive-Game
Loading...
Searching...
No Matches
Point.java
Go to the documentation of this file.
1
package
com.runehive.game.world.entity.mob.movement;
2
3
/**
4
* Represents a single point in the queue.
5
*
6
* @author Graham Edgecombe
7
*/
8
public
class
Point
{
9
10
/** The x-coordinate. */
11
public
final
int
x
;
12
13
/** The y-coordinate. */
14
public
final
int
y
;
15
16
/** The direction to walk to this point. */
17
public
final
int
dir
;
18
19
/**
20
* Creates a point.
21
*
22
* @param x
23
* X coord.
24
* @param y
25
* Y coord.
26
* @param dir
27
* Direction to walk to this point.
28
*/
29
public
Point
(
int
x
,
int
y
,
int
dir
) {
30
this.x =
x
;
31
this.y =
y
;
32
this.dir =
dir
;
33
}
34
}
com.runehive.game.world.entity.mob.movement.Point.y
final int y
The y-coordinate.
Definition
Point.java:14
com.runehive.game.world.entity.mob.movement.Point.x
final int x
The x-coordinate.
Definition
Point.java:11
com.runehive.game.world.entity.mob.movement.Point.Point
Point(int x, int y, int dir)
Creates a point.
Definition
Point.java:29
com.runehive.game.world.entity.mob.movement.Point.dir
final int dir
The direction to walk to this point.
Definition
Point.java:17